Fix loop handling (closes #169)
This commit is contained in:
parent
842896642e
commit
21737c33e4
@ -343,6 +343,5 @@ async def ical(entity_id: str):
|
||||
|
||||
|
||||
def __main__():
|
||||
quart_task = client.loop.create_task(app.run_task("0.0.0.0"))
|
||||
quart_task.add_done_callback(lambda f: client.loop.stop())
|
||||
client.run(DISCORD_TOKEN)
|
||||
client.loop.create_task(client.start(DISCORD_TOKEN))
|
||||
app.run("0.0.0.0", loop=client.loop)
|
||||
|
Loading…
Reference in New Issue
Block a user