lol forgot imports

This commit is contained in:
io mintz 2021-05-19 22:44:40 +00:00
parent 1d6ad4cfd5
commit a4e4120a63
1 changed files with 2 additions and 0 deletions

2
bot.py
View File

@ -29,6 +29,8 @@ logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
# SelectorEventLoop on windows doesn't support subprocesses lol
import asyncio
import sys
if sys.platform == 'win32':
loop = asyncio.ProactorEventLoop()
asyncio.set_event_loop(loop)