In the event_handler example, sending message containing the word "poise" would cause the bot to reply with the message "Poise has been mentioned {n} times" like expected. However, since the bot's message itself contained the word "poise", it would continually reply to itself.
I fixed it by adding a simple check to test the message_author's id against the bot's user id.
In the event_handler example, sending message containing the word "poise" would cause the bot to reply with the message "Poise has been mentioned {n} times" like expected. However, since the bot's message itself contained the word "poise", it would continually reply to itself.
I fixed it by adding a simple check to test the message_author's id against the bot's user id.