RiZoeL -! commited on
Commit
77795f8
·
1 Parent(s): 8a0d27d

Update watchers.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/watchers.py +6 -6
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
- if check['is_gban']:
220
- try:
221
- await RiZoeL.ban_chat_member(message.chat.id, user.id)
222
- except:
223
- pass
224
- await RiZoeL.send_message(message.chat.id, msg, disable_web_page_preview=True)
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())