aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/__init__.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-08-22 16:45:58 +0100
committerGravatar Chris Lovering <[email protected]>2022-08-22 16:45:58 +0100
commit530d1cd889cf0d55e46c210d88612c9fe669a353 (patch)
tree0b07eb7b1d69b71e04900653ce852ee00c8dface /arthur/__init__.py
parentMerge pull request #16 from python-discord/dependabot/pip/flake8-5.0.4 (diff)
Ensure monkeypatches from bot-core are ran on startup
Diffstat (limited to 'arthur/__init__.py')
-rw-r--r--arthur/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/arthur/__init__.py b/arthur/__init__.py
index 0d837f6..c2c5154 100644
--- a/arthur/__init__.py
+++ b/arthur/__init__.py
@@ -5,6 +5,7 @@ from functools import partial
from typing import TYPE_CHECKING
import loguru
+from botcore.utils import apply_monkey_patches
if TYPE_CHECKING:
from arthur.bot import KingArthur
@@ -12,6 +13,8 @@ if TYPE_CHECKING:
logger = loguru.logger.opt(colors=True)
logger.opt = partial(logger.opt, colors=True)
+apply_monkey_patches()
+
# On Windows, the selector event loop is required for aiodns.
if os.name == "nt":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())