From 1252c9ee7f677435faa9500bee7ff2337e9defbc Mon Sep 17 00:00:00 2001 From: dan63047 Date: Tue, 9 Jun 2020 23:49:28 +0300 Subject: [PATCH] quick fix --- dan63047bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dan63047bot.py b/dan63047bot.py index 17957a1..4e036ce 100644 --- a/dan63047bot.py +++ b/dan63047bot.py @@ -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")