Spaces:
Paused
Paused
RiZoeL -!
commited on
Commit
·
0b25fb1
1
Parent(s):
7442f81
Update watchers.py
Browse files
Powers/plugins/watchers.py
CHANGED
|
@@ -216,12 +216,12 @@ Scanned by TeamRed7 | Phoenix API ;)
|
|
| 216 |
Appeal [Here](https://t.me/Red7WatchSupport)
|
| 217 |
"""
|
| 218 |
check = Red7_Client.check(m.from_user.id)
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
except Exception as eror:
|
| 226 |
LOGGER.error(eror)
|
| 227 |
LOGGER.error(format_exc())
|
|
|
|
| 216 |
Appeal [Here](https://t.me/Red7WatchSupport)
|
| 217 |
"""
|
| 218 |
check = Red7_Client.check(m.from_user.id)
|
| 219 |
+
if check['is_gban']:
|
| 220 |
+
try:
|
| 221 |
+
await c.ban_chat_member(m.chat.id, user.id)
|
| 222 |
+
await c.send_message(m.chat.id, msg, disable_web_page_preview=True)
|
| 223 |
+
except Exception as a:
|
| 224 |
+
LOGGER.error(a)
|
| 225 |
except Exception as eror:
|
| 226 |
LOGGER.error(eror)
|
| 227 |
LOGGER.error(format_exc())
|