Fix FlanaBot._on_database_messages (chat chat user user)
This commit is contained in:
@@ -227,18 +227,26 @@ class FlanaBot(Connect4Bot, PenaltyBot, PollBot, ScraperBot, UberEatsBot, Weathe
|
|||||||
users = []
|
users = []
|
||||||
chats = []
|
chats = []
|
||||||
for word in words:
|
for word in words:
|
||||||
if bool(flanautils.cartesian_product_string_matching(
|
if (
|
||||||
multibot_constants.KEYWORDS['user'],
|
not parsing_users
|
||||||
word,
|
and
|
||||||
multibot_constants.PARSER_MIN_SCORE_DEFAULT
|
flanautils.cartesian_product_string_matching(
|
||||||
)):
|
multibot_constants.KEYWORDS['user'],
|
||||||
|
word,
|
||||||
|
multibot_constants.PARSER_MIN_SCORE_DEFAULT
|
||||||
|
)
|
||||||
|
):
|
||||||
parsing_users = True
|
parsing_users = True
|
||||||
parsing_chats = False
|
parsing_chats = False
|
||||||
elif bool(flanautils.cartesian_product_string_matching(
|
elif (
|
||||||
multibot_constants.KEYWORDS['chat'],
|
not parsing_chats
|
||||||
word,
|
and
|
||||||
multibot_constants.PARSER_MIN_SCORE_DEFAULT
|
flanautils.cartesian_product_string_matching(
|
||||||
)):
|
multibot_constants.KEYWORDS['chat'],
|
||||||
|
word,
|
||||||
|
multibot_constants.PARSER_MIN_SCORE_DEFAULT
|
||||||
|
)
|
||||||
|
):
|
||||||
parsing_users = False
|
parsing_users = False
|
||||||
parsing_chats = True
|
parsing_chats = True
|
||||||
elif parsing_users:
|
elif parsing_users:
|
||||||
|
|||||||
Reference in New Issue
Block a user