PluralKit/src/bot_main.py

11 lines
232 B
Python
Raw Normal View History

2018-07-11 22:47:44 +00:00
import asyncio
import os
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
2018-07-11 22:47:44 +00:00
from pluralkit import bot
pk = bot.PluralKitBot(os.environ["TOKEN"])
2018-07-11 22:47:44 +00:00
loop = asyncio.get_event_loop()
loop.run_until_complete(pk.run())