diff options
author | 2022-05-09 18:21:21 +0200 | |
---|---|---|
committer | 2022-05-09 18:21:21 +0200 | |
commit | 019983c3785191a0c7182c62394cec2bac123d51 (patch) | |
tree | 54c296bd04a13a0097cbd7249b78a6716556d735 /bot/__main__.py | |
parent | Doublefixed indentation and removed unused import. (diff) | |
parent | Bump pillow from 9.0.0 to 9.0.1 (#1045) (diff) |
Merge branch 'main' into uwu
Diffstat (limited to 'bot/__main__.py')
-rw-r--r-- | bot/__main__.py | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index c6e5fa57..0bf7b398 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -1,28 +1,10 @@ import logging -import sentry_sdk -from sentry_sdk.integrations.logging import LoggingIntegration -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.constants import Client, STAFF_ROLES, WHITELISTED_CHANNELS from bot.utils.decorators import whitelist_check from bot.utils.extensions import walk_extensions -sentry_logging = LoggingIntegration( - level=logging.DEBUG, - event_level=logging.WARNING -) - -sentry_sdk.init( - dsn=Client.sentry_dsn, - integrations=[ - sentry_logging, - RedisIntegration() - ], - release=f"sir-lancebot@{GIT_SHA}" -) - log = logging.getLogger(__name__) bot.add_check(whitelist_check(channels=WHITELISTED_CHANNELS, roles=STAFF_ROLES)) @@ -30,4 +12,5 @@ bot.add_check(whitelist_check(channels=WHITELISTED_CHANNELS, roles=STAFF_ROLES)) for ext in walk_extensions(): bot.load_extension(ext) -bot.run(Client.token) +if not Client.in_ci: + bot.run(Client.token) |