Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
dd098ab
1
Parent(s):
6702f0a
Update fun.py
Browse files- Powers/plugins/fun.py +6 -4
Powers/plugins/fun.py
CHANGED
@@ -103,10 +103,12 @@ async def insult(c : Gojo , m: Message):
|
|
103 |
return
|
104 |
if user_id in DEV_USERS:
|
105 |
await m.reply_text("Sorry! I can't insult my devs....")
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
|
|
|
|
110 |
|
111 |
|
112 |
|
|
|
103 |
return
|
104 |
if user_id in DEV_USERS:
|
105 |
await m.reply_text("Sorry! I can't insult my devs....")
|
106 |
+
return LOGGER.info(f"{m.from_user.id} tried to insult {user_first_name} in {m.chat.id}")
|
107 |
+
else:
|
108 |
+
Insult_omp = random.choice(fun_strings.INSULT_STRINGS)
|
109 |
+
reply_text = m.reply_to_message.reply_text if m.reply_to_message else m.reply_text
|
110 |
+
await reply_text(Insult_omp)
|
111 |
+
LOGGER.info(f"{m.from_user.id} insulted {user_first_name} in {m.chat.id}")
|
112 |
|
113 |
|
114 |
|