aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__init__.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-06-28 22:36:22 +0100
committerGravatar Chris Lovering <[email protected]>2022-09-21 23:02:55 +0100
commit510da5190a0f499397c9419fa3b125233bed566c (patch)
tree8d6cb2a7c66ae353f40ddc711aed13fd0c51b667 /bot/__init__.py
parentUse monkey patches from botcore (diff)
Use BotBase from bot core
Diffstat (limited to 'bot/__init__.py')
-rw-r--r--bot/__init__.py6
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.