aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__main__.py
diff options
context:
space:
mode:
authorGravatar RohanRadia <[email protected]>2019-10-02 20:58:00 +0100
committerGravatar GitHub <[email protected]>2019-10-02 20:58:00 +0100
commit1da22f8a9bd64f13883a4bc8011c9f5069b4dac9 (patch)
treedeaed1b2caf7f650f05e12613cdff5b8a12629c9 /bot/__main__.py
parentRemoved unused json (diff)
parentMerge pull request #285 from Numerlor/hacktober-date-channel-fixes (diff)
Merge pull request #3 from python-discord/master
Update
Diffstat (limited to 'bot/__main__.py')
-rw-r--r--bot/__main__.py5
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)