Dec-14-2020, 01:52 AM
My first thought might be that
What is all of message in both cases? Because i know in IRC a message is a lot more content than just what the person wrote. These have to be parsed out. On rare occurrence if it is not parsed out properly, you can have a duplicate or false positive.
message['content']contains two results for pattern1, where pattern2 does not. And for all i know bot_handler.send_reply and bot_handler.react could be interpreting it incorrectly. You are sending message to them but regex'ing message['content'] not message.
What is all of message in both cases? Because i know in IRC a message is a lot more content than just what the person wrote. These have to be parsed out. On rare occurrence if it is not parsed out properly, you can have a duplicate or false positive.
Recommended Tutorials: