Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
ab04833
1
Parent(s):
bfa351b
Update warns.py
Browse files- Powers/plugins/warns.py +3 -0
Powers/plugins/warns.py
CHANGED
@@ -81,6 +81,9 @@ async def warn(c: Gojo, m: Message):
|
|
81 |
elif warn_settings["warn_mode"] == "mute":
|
82 |
await m.chat.restrict_member(user_id, ChatPermissions())
|
83 |
action = "muted"
|
|
|
|
|
|
|
84 |
await m.reply_text(
|
85 |
(
|
86 |
f"Warnings {num}/{warn_settings['warn_limit']}!"
|
|
|
81 |
elif warn_settings["warn_mode"] == "mute":
|
82 |
await m.chat.restrict_member(user_id, ChatPermissions())
|
83 |
action = "muted"
|
84 |
+
else:
|
85 |
+
await m.chat.ban_member(user_id, until_date=timeee)
|
86 |
+
action = "kicked"
|
87 |
await m.reply_text(
|
88 |
(
|
89 |
f"Warnings {num}/{warn_settings['warn_limit']}!"
|