fix: dodanie brakującego importu Optional w bot.py oraz wyłączenie buforowania logów w Dockerze
This commit is contained in:
3 files changed
+3
-1
No files matched your search
+1
-1
@@ -21,4 +21,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY . .
|
||||
|
||||
# Command to run the bot
|
||||
CMD ["python", "main.py"]
|
||||
CMD ["python", "-u", "main.py"]
|
||||
@@ -3,6 +3,7 @@ from discord import app_commands
|
||||
from discord.ext import commands
|
||||
import asyncio
|
||||
import os
|
||||
from typing import Optional
|
||||
from dotenv import load_dotenv
|
||||
from ytdl import YTDLSource
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ services:
|
||||
- "80:8000"
|
||||
environment:
|
||||
- DISCORD_TOKEN=${DISCORD_TOKEN}
|
||||
- PYTHONUNBUFFERED=1
|
||||
volumes:
|
||||
- ./config:/app/config
|
||||
- ./uploads:/app/uploads
|
||||
|
||||
Reference in new issue
Block a user