This commit is contained in:
2024-08-09 21:57:30 +02:00
parent d473094f67
commit 52ccc4c6b5
2 changed files with 8 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ RUN --mount=type=ssh /opt/venv/bin/poetry export --without-hashes ${POETRY_EXPOR
&& /opt/venv/bin/pip install --no-cache-dir -r requirements.txt && /opt/venv/bin/pip install --no-cache-dir -r requirements.txt
FROM python:3.11-slim AS runtime FROM python:3.12-slim AS runtime
RUN apt update && apt install -y --no-install-recommends netcat-traditional wkhtmltopdf && apt clean RUN apt update && apt install -y --no-install-recommends netcat-traditional wkhtmltopdf && apt clean
@@ -25,4 +25,4 @@ WORKDIR /app
EXPOSE 80 EXPOSE 80
CMD ["python", "/app/main.py"] CMD ["python3.12", "/app/main.py"]

View File

@@ -1,3 +1,5 @@
import asyncio
import discord import discord
from discord.abc import Messageable from discord.abc import Messageable
from discord import Object from discord import Object
@@ -95,4 +97,7 @@ async def delete(interaction: discord.Interaction, game: str):
async def start_discord_sevice(): async def start_discord_sevice():
client.run(config.DISCORD_BOT_TOKEN) print("Starting Discord service...")
loop = asyncio.get_event_loop()
await loop.run_in_executor(None, client.run, config.DISCORD_BOT_TOKE)