AlekEagle / dadbot

Dad Bot Mega Pog edition! (now with 20% more TypeScript!)
https://alekeagle.com/dad-bot
GNU Affero General Public License v3.0
38 stars 11 forks source link

kys detection not working as intended #49

Open EukkMaru opened 5 months ago

EukkMaru commented 5 months ago

image The regex for kys detection in autoresponse doesn't seem to catch "kill yourself" or "kill your self" and only react to "kys". This has been reflected in the bot's actual behavior, where the bot would react to "kys" but not "kill yourself".

image This approach is one of possible fixes (ignore the /gm)

AlekEagle commented 5 months ago

Thanks for catching that, I wrote that regex a long time ago, before I had an understanding of it, but looking at it now the issue seems kinda obvious. I'll make a fix tomorrow. Thanks again!