Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
53c3c93
1
Parent(s):
9d0ce09
Update fun.py
Browse files- Powers/plugins/fun.py +6 -5
Powers/plugins/fun.py
CHANGED
@@ -100,7 +100,8 @@ async def fun_toss(_, m: Message):
|
|
100 |
@Gojo.on_message(command("insult"))
|
101 |
async def insult(c: Gojo, m: Message):
|
102 |
if not m.reply_to_message:
|
103 |
-
|
|
|
104 |
user_id = m.reply_to_message.from_user.id
|
105 |
user_first_name = m.reply_to_message.from_user.first_name
|
106 |
if user_id in DEV_USERS:
|
@@ -110,10 +111,10 @@ async def insult(c: Gojo, m: Message):
|
|
110 |
)
|
111 |
else:
|
112 |
Insult_omp = choice(extras.INSULT_STRINGS)
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
LOGGER.info(f"{m.from_user.id} insulted {user_first_name} in {m.chat.id}")
|
118 |
|
119 |
|
|
|
100 |
@Gojo.on_message(command("insult"))
|
101 |
async def insult(c: Gojo, m: Message):
|
102 |
if not m.reply_to_message:
|
103 |
+
await m.reply_text("You want to insult yourself such a foolish person.\nYou are not even worth insulting")
|
104 |
+
return
|
105 |
user_id = m.reply_to_message.from_user.id
|
106 |
user_first_name = m.reply_to_message.from_user.first_name
|
107 |
if user_id in DEV_USERS:
|
|
|
111 |
)
|
112 |
else:
|
113 |
Insult_omp = choice(extras.INSULT_STRINGS)
|
114 |
+
if m.reply_to_message:
|
115 |
+
await m.reply_to_message.reply_text(Insult_omp)
|
116 |
+
else:
|
117 |
+
await m.reply_text(Insult_omp)
|
118 |
LOGGER.info(f"{m.from_user.id} insulted {user_first_name} in {m.chat.id}")
|
119 |
|
120 |
|