aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/__init__.py
blob: a163be5d972812925d2815bdbd534d1062a90232 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""King Arthur is Python Discord's DevOps utility bot."""

import asyncio
import os
from typing import TYPE_CHECKING

from pydis_core.utils import apply_monkey_patches

if TYPE_CHECKING:
    from arthur.bot import KingArthur


apply_monkey_patches()

# On Windows, the selector event loop is required for aiodns.
if os.name == "nt":
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

instance: "KingArthur" = None  # Global Bot instance.