PluralKit/src/bot_main.py
2019-03-08 17:22:05 +01:00

12 lines
330 B
Python

import asyncio
import sys
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(bot.Config.from_file_and_env(sys.argv[1] if len(sys.argv) > 1 else "pluralkit.conf"))