diff options
Diffstat (limited to 'bot/__init__.py')
-rw-r--r-- | bot/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bot/__init__.py b/bot/__init__.py index c1ecb30f..33fd4e1c 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -8,6 +8,7 @@ except ModuleNotFoundError: import asyncio import logging import os +from typing import TYPE_CHECKING import arrow import sentry_sdk @@ -17,6 +18,9 @@ from sentry_sdk.integrations.redis import RedisIntegration from bot import log +if TYPE_CHECKING: + from bot.bot import Bot + sentry_logging = LoggingIntegration( level=logging.DEBUG, event_level=logging.WARNING @@ -41,3 +45,5 @@ if os.name == "nt": asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) apply_monkey_patches() + +instance: "Bot" = None # Global Bot instance. |