diff options
| author | 2019-09-30 14:48:49 +0200 | |
|---|---|---|
| committer | 2019-09-30 14:48:49 +0200 | |
| commit | 6120f9d90272cab33aa1da857dbfaeb1b5adbd9a (patch) | |
| tree | 740c8bd789e24ca22913caad26bcd5897cd6d270 /bot/__main__.py | |
| parent | Edit dates (diff) | |
| parent | Merge pull request #276 from python-discord/update-flake8-annotations (diff) | |
Merge branch 'master' into date-fix
Diffstat (limited to '')
| -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) |