Minor improvements
This commit is contained in:
parent
e343b54dcf
commit
c9783eefe0
|
@ -1 +1,3 @@
|
||||||
config.json
|
config.json
|
||||||
|
venv/
|
||||||
|
__pycache__/
|
||||||
|
|
|
@ -23,7 +23,7 @@ async def new_msg(update, context, regexes):
|
||||||
is_spam = True
|
is_spam = True
|
||||||
break
|
break
|
||||||
if is_spam:
|
if is_spam:
|
||||||
logging.info(f"Banning: {update.message}")
|
logging.info(f"Banning {update.message.from_user.name} from {update.message.chat.effective_name}")
|
||||||
await update.message.chat.ban_member(update.message.from_user.id)
|
await update.message.chat.ban_member(update.message.from_user.id)
|
||||||
await update.message.delete()
|
await update.message.delete()
|
||||||
logging.info("Banned.")
|
logging.info("Banned.")
|
||||||
|
|
Loading…
Reference in New Issue