mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
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
|
||||
|
||||
@@ -25,4 +25,4 @@ WORKDIR /app
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["python", "/app/main.py"]
|
||||
CMD ["python3.12", "/app/main.py"]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import asyncio
|
||||
|
||||
import discord
|
||||
from discord.abc import Messageable
|
||||
from discord import Object
|
||||
@@ -95,4 +97,7 @@ async def delete(interaction: discord.Interaction, game: str):
|
||||
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user