From 0ea0a907d2bb93257c9cd0c3143fea65cc93d37f Mon Sep 17 00:00:00 2001 From: Taku 3 Animals <45324516+Taaku18@users.noreply.github.com> Date: Tue, 26 May 2020 22:43:46 -0700 Subject: [PATCH] Update bot.py --- bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot.py b/bot.py index 694f860cf1..9b8bdd1141 100644 --- a/bot.py +++ b/bot.py @@ -46,6 +46,9 @@ if not os.path.exists(temp_dir): os.mkdir(temp_dir) +if sys.platform == 'win32': + asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy()) + class ModmailBot(commands.Bot): def __init__(self):