diff --git a/src/__init__.py b/src/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/src/bot_main.py b/src/bot_main.py index bb8886b6..e8a9e0ab 100644 --- a/src/bot_main.py +++ b/src/bot_main.py @@ -1,8 +1,11 @@ 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 bot.run() \ No newline at end of file diff --git a/src/requirements.txt b/src/requirements.txt index 95007db4..49693a53 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -4,5 +4,4 @@ asyncpg dateparser https://github.com/Rapptz/discord.py/archive/860d6a9ace8248dfeec18b8b159e7b757d9f56bb.zip#egg=discord.py humanize -uvloop ciso8601