diff options
| author | 2020-05-19 00:33:00 -0400 | |
|---|---|---|
| committer | 2020-05-19 00:33:00 -0400 | |
| commit | 9f0e0298d5d4fce750dc1645ff55478856481616 (patch) | |
| tree | c127ae89ac775fc5b4db0c54ced4e1e6d2aa540a /bot/__init__.py | |
| parent | Update halloweenify error message to make it more readable and restructure th... (diff) | |
| parent | Merge pull request #406 from DuckMasterAl/patch-1 (diff) | |
Merge branch 'master' into boo-fix
Diffstat (limited to 'bot/__init__.py')
| -rw-r--r-- | bot/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bot/__init__.py b/bot/__init__.py index 4729e50c..6976e089 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -1,3 +1,4 @@ +import asyncio import logging import logging.handlers import os @@ -63,3 +64,8 @@ logging.basicConfig( handlers=[console_handler, file_handler] ) logging.getLogger().info('Logging initialization complete') + + +# On Windows, the selector event loop is required for aiodns. +if os.name == "nt": + asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) |