fix des dossiers
This commit is contained in:
parent
35eba9fae0
commit
d18e148cf2
2 changed files with 19 additions and 5 deletions
|
|
@ -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
19
bot.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue