Orbiit / giggle-bot

A BOT THAT doesn't SCREAM as much (and this time uses discord.js fancy library)
https://discord.gg/azw3qEH
0 stars 0 forks source link

make commands only match beginning #13

Closed SheepTester closed 6 years ago

SheepTester commented 6 years ago

the regex was intentionally designed to detect commands within, but this caused more harm than benefit. most people say the commands by themselves, and typically when they use it in the middle, it's unintentional

main problem is DemoCoin's !rob which also triggers Moofy, and our robbing system is a bit harsher

not to mention commands can't be chained, so there's really no reason to put commands in the middle of messages

unless anyone here wants this? otherwise i'll remove it for most of the commands

proposed changes

except for a few commands like hate and the mention commands, replace the \b in the beginning of the regexes with ^

the mentionless mention command trigger should now require the comma

SheepTester commented 6 years ago

mention command doesn't require comma but otherwise added in 13bc845