aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__main__.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-08-13 20:04:10 -0400
committerGravatar GitHub <[email protected]>2019-08-13 20:04:10 -0400
commitd2a8e1caf351601071f2a96715a7f9d95a1e69fb (patch)
tree3f94c3c965fc3a4d42b36dafeb9bab6abcaf3462 /bot/__main__.py
parentMerge pull request #254 from jakeHebert/master (diff)
parentFix indent style and reduce logging message verbosity (diff)
Merge pull request #251 from python-discord/seasonalbot-commands
Limit SeasonalBot commands to whitelisted channels
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)