fjaros / wowchat

WoWChat is a clientless Discord integration chat bot for old versions of World of Warcraft.
GNU General Public License v3.0
139 stars 96 forks source link

Filters function not working #95

Closed Brain-Hurts closed 1 year ago

Brain-Hurts commented 1 year ago

Cannot get the filters function to filter anything out, including the java regexes already in the conf.

Messages with >> and << don't get filtered.

Filters enabled is set to =1

Not getting any error to report

fjaros commented 1 year ago

Well just to make sure, can you paste your config? (delete sensitive information and surround it in 3 ticks ``` for formatting). You may have misformatted something or added an extra character somewhere such that the filters section is not being parsed. Do you see any logs with the word "FILTERED" showing up in the console window?

The filtering happens here The shouldFilter function is here

If you are sure your setup is correct, maybe you can add a log for what actually gets passed into shouldFilter and then we can debug why it is not being matched by any regex.

Brain-Hurts commented 1 year ago

I was tired last night and got it figured out today. Was just me being stupid with regex. Sorry for wasting your time.