-
Notifications
You must be signed in to change notification settings - Fork 83
/
memestext.py
209 lines (183 loc) · 4.94 KB
/
memestext.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
import random
from userbot import catub
from userbot.core.managers import edit_or_reply
from userbot.plugins import catmemes
plugin_category = "fun"
@catub.cat_cmd(
pattern="congo$",
command=("congo", plugin_category),
info={
"header": " Congratulate the people..",
"usage": "{tr}congo",
},
)
async def _(e):
"Congratulate the people."
txt = random.choice(catmemes.CONGOREACTS)
await edit_or_reply(e, txt)
@catub.cat_cmd(
pattern="shg$",
command=("shg", plugin_category),
info={
"header": "Shrug at it !!",
"usage": "{tr}shg",
},
)
async def shrugger(e):
"Shrug at it !!"
txt = random.choice(catmemes.SHGS)
await edit_or_reply(e, txt)
@catub.cat_cmd(
pattern="runs$",
command=("runs", plugin_category),
info={
"header": "Run, run, RUNNN!.",
"usage": "{tr}runs",
},
)
async def runner_lol(e):
"Run, run, RUNNN!"
txt = random.choice(catmemes.RUNSREACTS)
await edit_or_reply(e, txt)
@catub.cat_cmd(
pattern="noob$",
command=("noob", plugin_category),
info={
"header": "Whadya want to know? Are you a NOOB?",
"usage": "{tr}noob",
},
)
async def metoo(e):
"Whadya want to know? Are you a NOOB?"
txt = random.choice(catmemes.NOOBSTR)
await edit_or_reply(e, txt)
@catub.cat_cmd(
pattern="insult$",
command=("insult", plugin_category),
info={
"header": "insult someone.",
"usage": "{tr}insult",
},
)
async def insult(e):
"insult someone."
txt = random.choice(catmemes.INSULT_STRINGS)
await edit_or_reply(e, txt)
@catub.cat_cmd(
pattern="hey$",
command=("hey", plugin_category),
info={
"header": "start a conversation with people",
"usage": "{tr}hey",
},
)
async def hoi(e):
"start a conversation with people."
txt = random.choice(catmemes.HELLOSTR)
await edit_or_reply(e, txt)
@catub.cat_cmd(
pattern="pro$",
command=("pro", plugin_category),
info={
"header": "If you think you're pro, try this.",
"usage": "{tr}pro",
},
)
async def proo(e):
"If you think you're pro, try this."
txt = random.choice(catmemes.PRO_STRINGS)
await edit_or_reply(e, txt)
@catub.cat_cmd(
pattern="react ?([\s\S]*)",
command=("react", plugin_category),
info={
"header": "Make your userbot react",
"types": [
"happy",
"think",
"wave",
"wtf",
"love",
"confused",
"dead",
"sad",
"dog",
],
"usage": ["{tr}react <type>", "{tr}react"],
},
)
async def _(e):
"Make your userbot react."
input_str = e.pattern_match.group(1)
if input_str in "happy":
emoticons = catmemes.FACEREACTS[0]
elif input_str in "think":
emoticons = catmemes.FACEREACTS[1]
elif input_str in "wave":
emoticons = catmemes.FACEREACTS[2]
elif input_str in "wtf":
emoticons = catmemes.FACEREACTS[3]
elif input_str in "love":
emoticons = catmemes.FACEREACTS[4]
elif input_str in "confused":
emoticons = catmemes.FACEREACTS[5]
elif input_str in "dead":
emoticons = catmemes.FACEREACTS[6]
elif input_str in "sad":
emoticons = catmemes.FACEREACTS[7]
elif input_str in "dog":
emoticons = catmemes.FACEREACTS[8]
else:
emoticons = catmemes.FACEREACTS[9]
txt = random.choice(emoticons)
await edit_or_reply(e, txt)
@catub.cat_cmd(
pattern="10iq$",
command=("10iq", plugin_category),
info={
"header": "You retard !!",
"usage": "{tr}10iq",
},
)
async def iqless(e):
"You retard !!"
await edit_or_reply(e, "♿")
@catub.cat_cmd(
pattern="fp$",
command=("fp", plugin_category),
info={
"header": "send you face pam emoji!",
"usage": "{tr}fp",
},
)
async def facepalm(e):
"send you face pam emoji!"
await edit_or_reply(e, "🤦♂")
@catub.cat_cmd(
pattern="bt$",
command=("bt", plugin_category),
info={
"header": "Believe me, you will find this useful.",
"usage": "{tr}bt",
},
groups_only=True,
)
async def bluetext(e):
"""Believe me, you will find this useful."""
await edit_or_reply(
e,
"/BLUETEXT /MUST /CLICK.\n"
"/ARE /YOU /A /STUPID /ANIMAL /WHICH /IS /ATTRACTED /TO /COLOURS?",
)
@catub.cat_cmd(
pattern="session$",
command=("session", plugin_category),
info={
"header": "telethon session error code(fun)",
"usage": "{tr}session",
},
)
async def _(event):
"telethon session error code(fun)."
mentions = "**telethon.errors.rpcerrorlist.AuthKeyDuplicatedError: The authorization key (session file) was used under two different IP addresses simultaneously, and can no longer be used. Use the same session exclusively, or use different sessions (caused by GetMessagesRequest)**"
await edit_or_reply(event, mentions)