quick fix
This commit is contained in:
parent
6e6383a55a
commit
1252c9ee7f
|
@ -285,6 +285,7 @@ class VkBot:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log(True, f"[BOT_{self._CHAT_ID}] can't kick user id{user_id} - {str(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:
|
with open('bad_words.txt', 'r') as filter:
|
||||||
|
flag = False
|
||||||
for word in filter:
|
for word in filter:
|
||||||
if flag:
|
if flag:
|
||||||
log(False, f"[BOT_{self._CHAT_ID}] bad word detected")
|
log(False, f"[BOT_{self._CHAT_ID}] bad word detected")
|
||||||
|
|
Loading…
Reference in New Issue