diff options
author | 2019-08-14 15:24:01 -0400 | |
---|---|---|
committer | 2019-08-14 15:24:01 -0400 | |
commit | 119d542483f59d3f581b168854af9012208abf7d (patch) | |
tree | 7706226d2e01cfb128a71d1ca52404a1246407e3 /bot/__main__.py | |
parent | moved data grab to module level, changed var to constant (diff) | |
parent | Merge pull request #257 from vivax3794/minesweeper-lenght-fix (diff) |
Merge pull request #1 from python-discord/master
update
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) |