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__():
|
def __main__():
|
||||||
quart_task = client.loop.create_task(app.run_task("0.0.0.0"))
|
client.loop.create_task(client.start(DISCORD_TOKEN))
|
||||||
quart_task.add_done_callback(lambda f: client.loop.stop())
|
app.run("0.0.0.0", loop=client.loop)
|
||||||
client.run(DISCORD_TOKEN)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user