diff options
author | 2020-05-24 20:18:56 -0400 | |
---|---|---|
committer | 2020-05-24 20:18:56 -0400 | |
commit | 2defff0491ad15dcb692c3a60b74662378d472bd (patch) | |
tree | 346f8e57933423d086c66a512692f2615e101065 /bot/__init__.py | |
parent | 5/24 - bot utils - added encoding, and notes for persist (diff) | |
parent | Merge pull request #401 from fuzzmz/minesweeper-disabled-dm-handling (diff) |
Merge branch 'master' into encoding_bug_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()) |