diff options
author | 2021-10-29 02:45:48 +0000 | |
---|---|---|
committer | 2021-10-29 02:45:48 +0000 | |
commit | 36d8f996575d99e08256b0336ae75e9e491c381a (patch) | |
tree | 3fae5efbaa824aa957a39699075633f3cb2aa02c /bot/command.py | |
parent | Migrate to `og_blurple` (#924) (diff) |
Candy Game: Ignore reactions to bot messages when adding candies
Check whether a reaction is for a bot message when adding candies
upon reactions. Previously you could use bot's reaction buttons which
would trigger `on_reaction_add` and have a high chance of getting candies
(or skulls). It can easily be abused to spam reactions, which apparently
doesn't trigger an auto-mute like spamming messages do, AFAIK.
In any case, I don't really feel good about reactions triggering candies.
Despite this fix, the game *can* still be abused (but I won't tell you how).
Though this occuring by accident is less likely than before. Either figure
it out yourself or don't try to cheat :P
This patch can be tested using the `.snake antidote` game when you react
to the recipe buttons. Using `.help` works too but it produces a lot of
noise in the logs. Tic tac toe may be helpful as well. Anyway, you could
just react to bot messages yourself.
Diffstat (limited to 'bot/command.py')
0 files changed, 0 insertions, 0 deletions