fix
This commit is contained in:
parent
e725f33ed3
commit
691fa16c19
@ -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
|
||||
self.__me = me.id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user