aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__main__.py
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2021-03-08 20:54:24 +1000
committerGravatar GitHub <[email protected]>2021-03-08 20:54:24 +1000
commitd21f4870506c97c3120b18cda6a50610022bc134 (patch)
tree661c2a11d2b4d0e262f2b084e659f2d8521cbea5 /bot/__main__.py
parentImprove punctuation and wording of .emoji count. (diff)
parentMerge pull request #598 from Arez1337/trivia (diff)
Merge branch 'master' into master
Diffstat (limited to 'bot/__main__.py')
-rw-r--r--bot/__main__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/__main__.py b/bot/__main__.py
index e9b14a53..c6e5fa57 100644
--- a/bot/__main__.py
+++ b/bot/__main__.py
@@ -6,10 +6,9 @@ from sentry_sdk.integrations.redis import RedisIntegration
from bot.bot import bot
from bot.constants import Client, GIT_SHA, STAFF_ROLES, WHITELISTED_CHANNELS
-from bot.utils.decorators import in_channel_check
+from bot.utils.decorators import whitelist_check
from bot.utils.extensions import walk_extensions
-
sentry_logging = LoggingIntegration(
level=logging.DEBUG,
event_level=logging.WARNING
@@ -26,7 +25,7 @@ sentry_sdk.init(
log = logging.getLogger(__name__)
-bot.add_check(in_channel_check(*WHITELISTED_CHANNELS, bypass_roles=STAFF_ROLES))
+bot.add_check(whitelist_check(channels=WHITELISTED_CHANNELS, roles=STAFF_ROLES))
for ext in walk_extensions():
bot.load_extension(ext)