fix des dossiers

This commit is contained in:
ArcElewyn 2025-08-28 15:27:38 +02:00
parent 35eba9fae0
commit d18e148cf2
2 changed files with 19 additions and 5 deletions

View file

@ -14,11 +14,6 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY . .
# Create required folders
RUN mkdir -p screenshots/hydra/normal screenshots/hydra/hard screenshots/hydra/brutal screenshots/hydra/nightmare \
screenshots/chimera/easy screenshots/chimera/normal screenshots/chimera/hard screenshots/chimera/brutal screenshots/chimera/nightmare screenshots/chimera/ultra \
screenshots/cvc
# Environment variables
ENV PYTHONUNBUFFERED=1

19
bot.py
View file

@ -40,6 +40,25 @@ initial_cogs = [
"cogs.mercy",
]
# Liste des dossiers
folders = [
"screenshots/hydra/normal",
"screenshots/hydra/hard",
"screenshots/hydra/brutal",
"screenshots/hydra/nightmare",
"screenshots/chimera/easy",
"screenshots/chimera/normal",
"screenshots/chimera/hard",
"screenshots/chimera/brutal",
"screenshots/chimera/nightmare",
"screenshots/chimera/ultra",
"screenshots/cvc",
]
# Création des dossiers si nécessaire (exist_ok=True évite d'écraser)
for f in folders:
os.makedirs(f, exist_ok=True)
class MyBot(commands.Bot):
def __init__(self):
super().__init__(command_prefix="!", intents=intents)