From 6e544331a28bd2321add615c966358cc3b9a0b04 Mon Sep 17 00:00:00 2001 From: dymik739 Date: Mon, 31 Oct 2022 22:35:09 +0200 Subject: [PATCH] qna-basic: changed syntax of not in (from a suggestion) --- modules/qna-basic/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/qna-basic/index.py b/modules/qna-basic/index.py index 75dfd76..a59822c 100644 --- a/modules/qna-basic/index.py +++ b/modules/qna-basic/index.py @@ -12,7 +12,7 @@ for file in os.listdir(self.path + "db/"): for wordset in criteria["trigger_lists"]: all_words_in = True for word in wordset: - if not word in msg: + if word not in msg: all_words_in = False break