start-again / spookyBot

🎃 A spooky Discord bot
MIT License
9 stars 12 forks source link

Multi-words filter #9

Closed LucasCtrl closed 4 years ago

LucasCtrl commented 4 years ago

Bug Report

Current Behavior In a translation file, multi-part words are not taken into account. e.g.: "abend vor allerheiligen" will not be detected

Possible Solution Change the operating principle of the filter. For the moment, the message is split after each space. Then the different words are compared against the words in the translation file.

ALMerrill commented 4 years ago

I created a pull request for this here. I need to test it locally, but I'm not sure how to do that. Could I get some help with that?