There were a bunch of functions around the codebase with the same repeated pattern: check if message is in a certain channel, check if it includes a string, if so, react with emote.
Rather than repeating this pattern everywhere, this PR abstracts that behavior into a function, and moves all of the message reaction behavior into one file.
I've also made a function for handling Promise errors, which we can use to redirect our errors into the #general-errors channel that we created for this purpose.
There were a bunch of functions around the codebase with the same repeated pattern: check if message is in a certain channel, check if it includes a string, if so, react with emote. Rather than repeating this pattern everywhere, this PR abstracts that behavior into a function, and moves all of the message reaction behavior into one file.
I've also made a function for handling Promise errors, which we can use to redirect our errors into the
#general-errors
channel that we created for this purpose.