Fix FlanaBot._on_delete n_messages with mentions

This commit is contained in:
AlberLC
2023-08-17 19:03:33 +02:00
parent ebf58e039b
commit 20592332a2

View File

@@ -244,7 +244,7 @@ class FlanaBot(Connect4Bot, PenaltyBot, PollBot, ScraperBot, UberEatsBot, Weathe
elif ( elif (
(message.chat.is_private or self.is_bot_mentioned(message)) (message.chat.is_private or self.is_bot_mentioned(message))
and and
(n_messages := flanautils.text_to_number(message.text)) (n_messages := flanautils.text_to_number(' '.join(await self.filter_mention_ids(message.text, message))))
): ):
if message.author.is_admin is False: if message.author.is_admin is False:
await self.send_negative(message) await self.send_negative(message)