aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-08-22 20:28:51 +0100
committerGravatar GitHub <[email protected]>2022-08-22 20:28:51 +0100
commitf124a5a12776f3a1cf87a6e5c2e86bc221c55c27 (patch)
tree0b07eb7b1d69b71e04900653ce852ee00c8dface
parentMerge pull request #16 from python-discord/dependabot/pip/flake8-5.0.4 (diff)
parentEnsure monkeypatches from bot-core are ran on startup (diff)
Merge pull request #17 from python-discord/botocore-monkeypatching
-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())