diff --git a/src/bot/bot.py b/src/bot/bot.py index 0e103e4..e385d4b 100644 --- a/src/bot/bot.py +++ b/src/bot/bot.py @@ -294,7 +294,7 @@ class Bot(): return True elif filter_type == 'regexp': logger.info("msg_id={0}: Filter type is 'regexp'".format(message.id)) - if not re.match(filter_value, text): + if not re.search(filter_value, text): logger.info("msg_id={0}: Text '{1}' not found".format(message.id, filter_value)) if not message.reply_to == None: logger.info("msg_id={0}: Reply is present".format(message.id)) @@ -309,4 +309,4 @@ class Bot(): async def __identity(self) -> None: me = await self.__bot.get_me() - self.__me = me.id \ No newline at end of file + self.__me = me.id