appositum / ramona

American expatriate ninja courier (age unknown).
Apache License 2.0
8 stars 4 forks source link

Bot triggered by itself on ;polar command #11

Closed sqdorte closed 6 years ago

sqdorte commented 6 years ago

Ramona can still be triggered by itself on the ;polar command. Using ;say or ;sayin we can cause the bot to say ;polar police and then respond to it's own message with a polar_bear_police gif, for instance.

ramona responding to itself

sqdorte commented 6 years ago

Actually, the issue is bigger than I expected. Apparently, several other commands don't check if the user id of the message author is the same as the bot id. This includes:

ramona responding to itself

appositum commented 6 years ago

I've just came up with an idea. If you escape the command prefix like ;say \;invite, the hook doesn't get triggered. I'm gonna try to implement this and see how it goes. If it doesn't work, I think I should just remove the command all at once.