aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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())