dashwav/yin-bot

Move blacklist to Annotation

Closed this issue · 4 comments

Currently I have the bot only post in non-blacklisted channels with a code snippet at the beginning of the command. https://github.com/dashwav/yin-bot/blob/master/cogs/rng.py#L45

This should be abstracted to an annotation ideally

@nickalaskreynolds Did you end up doing this somewhere or am I misremembering?

In the latest PR I removed the need to make a decorator and just did it in the yinbot.py file in the on_message event. It should be under the 89ada15 commit.

Oh, is that one guaranteed to run first? Because I know we use on_message a few times throughout the code

Closing due to #38.
Will open new issue to improve