quick fix

This commit is contained in:
dan63047 2020-06-09 23:49:28 +03:00
parent 6e6383a55a
commit 1252c9ee7f
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ class VkBot:
except Exception as e:
log(True, f"[BOT_{self._CHAT_ID}] can't kick user id{user_id} - {str(e)}")
with open('bad_words.txt', 'r') as filter:
flag = False
for word in filter:
if flag:
log(False, f"[BOT_{self._CHAT_ID}] bad word detected")