mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
use ProactorEventLoop on windows
This commit is contained in:
parent
72652ef368
commit
1d6ad4cfd5
1 changed files with 5 additions and 0 deletions
5
bot.py
5
bot.py
|
@ -28,6 +28,11 @@ logging.getLogger('discord').setLevel(logging.INFO)
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
logger.setLevel(logging.INFO)
|
logger.setLevel(logging.INFO)
|
||||||
|
|
||||||
|
# SelectorEventLoop on windows doesn't support subprocesses lol
|
||||||
|
if sys.platform == 'win32':
|
||||||
|
loop = asyncio.ProactorEventLoop()
|
||||||
|
asyncio.set_event_loop(loop)
|
||||||
|
|
||||||
class Bot(Bot):
|
class Bot(Bot):
|
||||||
startup_extensions = (
|
startup_extensions = (
|
||||||
'cogs.emote',
|
'cogs.emote',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue