diff options
| author | 2020-02-06 21:40:40 +0000 | |
|---|---|---|
| committer | 2020-02-06 21:40:40 +0000 | |
| commit | 9e758d49a905b5e0c7ee8e722c331157888b7ba9 (patch) | |
| tree | 64e95c43444cd9b65bd8f939d9da4dc7736089f8 /bot/__main__.py | |
| parent | Post results and boards to initial channel (diff) | |
| parent | Update CODEOWNERS (diff) | |
Merge branch 'master' into battleships
Diffstat (limited to 'bot/__main__.py')
| -rw-r--r-- | bot/__main__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index a3b68ec1..9dc0b173 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -1,8 +1,11 @@ import logging -from bot.constants import Client, bot +from bot.bot import bot +from bot.constants import Client, STAFF_ROLES, WHITELISTED_CHANNELS +from bot.decorators import in_channel_check log = logging.getLogger(__name__) +bot.add_check(in_channel_check(*WHITELISTED_CHANNELS, bypass_roles=STAFF_ROLES)) bot.load_extension("bot.seasons") bot.run(Client.token) |