add rules
This commit is contained in:
+2
-2
@@ -36,13 +36,13 @@ zen_rows = ['Beautiful is better than ugly.', 'Explicit is better than implicit.
|
||||
|
||||
def wait_for_readers(action, chat_id, msg_id):
|
||||
""" Delete message after limited time. """
|
||||
sleep(45)
|
||||
sleep(30)
|
||||
action(chat_id, msg_id)
|
||||
|
||||
|
||||
def check_spam_list(type_message: types.Message) -> bool:
|
||||
""" Check for mentioning unwanted persons in text. """
|
||||
unwanted_phrases = ['tg.sv', 'goo.by', '🍀GREEN ROOM🍀']
|
||||
unwanted_phrases = ['tg.sv', 'goo.by', 'go.sv']
|
||||
for phrase in unwanted_phrases:
|
||||
if phrase in type_message.text.casefold():
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user