Discord bot reacts multiple times to message

I’m new to python and just started coding a Discord bot for me and my friends. I used the method from the Video to detect words in a message and react to it. My code has multiple word categories like ‘sad_words’ and ‘communication_words’ etc. My problem now is, that the code detects multiple trigger words in one message. For example, the trigger words in different categories are 1. walk, run, sleep, and 2. sad and cry. If now someone writes “I sleep and cry”, the bot answers twice. My Question is there a simple way to tell the bot to ignore a category if another is mentioned before

Thanks allot!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.