Fix main
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2022-08-22 21:44:02 +00:00
parent a4d388acf8
commit 203c6bc6af
3 changed files with 4 additions and 8 deletions

View File

@ -9,4 +9,4 @@ FROM python:3.10.6-slim
COPY --from=build /app/dist /tmp/dist
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist
CMD ["python", "-m", "divent"]
CMD ["python", "-m", "divent.bot"]

View File

@ -1,3 +0,0 @@
from .bot import run # type: ignore
run()

View File

@ -215,7 +215,6 @@ async def ical(guild_id: str):
return str(calendar)
def run():
quart_task = client.loop.create_task(app.run_task())
quart_task.add_done_callback(lambda f: client.loop.stop())
client.run(DISCORD_TOKEN)
quart_task = client.loop.create_task(app.run_task())
quart_task.add_done_callback(lambda f: client.loop.stop())
client.run(DISCORD_TOKEN)