This commit is contained in:
parent
a4d388acf8
commit
203c6bc6af
@ -9,4 +9,4 @@ FROM python:3.10.6-slim
|
|||||||
COPY --from=build /app/dist /tmp/dist
|
COPY --from=build /app/dist /tmp/dist
|
||||||
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist
|
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist
|
||||||
|
|
||||||
CMD ["python", "-m", "divent"]
|
CMD ["python", "-m", "divent.bot"]
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
from .bot import run # type: ignore
|
|
||||||
|
|
||||||
run()
|
|
@ -215,7 +215,6 @@ async def ical(guild_id: str):
|
|||||||
return str(calendar)
|
return str(calendar)
|
||||||
|
|
||||||
|
|
||||||
def run():
|
|
||||||
quart_task = client.loop.create_task(app.run_task())
|
quart_task = client.loop.create_task(app.run_task())
|
||||||
quart_task.add_done_callback(lambda f: client.loop.stop())
|
quart_task.add_done_callback(lambda f: client.loop.stop())
|
||||||
client.run(DISCORD_TOKEN)
|
client.run(DISCORD_TOKEN)
|
||||||
|
Loading…
Reference in New Issue
Block a user