mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 01:00:12 +00:00
Make uvloop an optional dependency
This commit is contained in:
parent
2c528500aa
commit
504e350c45
3 changed files with 6 additions and 4 deletions
|
|
@ -1,8 +1,11 @@
|
||||||
import asyncio
|
import asyncio
|
||||||
import os
|
|
||||||
import uvloop
|
|
||||||
|
|
||||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
try:
|
||||||
|
# uvloop doesn't work on Windows, therefore an optional dependency
|
||||||
|
import uvloop
|
||||||
|
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
from pluralkit import bot
|
from pluralkit import bot
|
||||||
bot.run()
|
bot.run()
|
||||||
|
|
@ -4,5 +4,4 @@ asyncpg
|
||||||
dateparser
|
dateparser
|
||||||
https://github.com/Rapptz/discord.py/archive/860d6a9ace8248dfeec18b8b159e7b757d9f56bb.zip#egg=discord.py
|
https://github.com/Rapptz/discord.py/archive/860d6a9ace8248dfeec18b8b159e7b757d9f56bb.zip#egg=discord.py
|
||||||
humanize
|
humanize
|
||||||
uvloop
|
|
||||||
ciso8601
|
ciso8601
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue