diff --git a/Dockerfile b/Dockerfile index 565106e..4c6366b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,8 @@ ENV FLASK_SECRET_KEY=$FLASK_SECRET_KEY ENV ADMIN_USER=$ADMIN_USER ENV ADMIN_PASS=$ADMIN_PASS ENV FLASK_ENV=development +ENV VISION_ENABLED=$VISION_ENABLED +ENV ASKMULTUS_ENABLED=$ASKMULTUS_ENABLED # Startbefehl für das Webpanel CMD ["python", "app.py"] diff --git a/bot.py b/bot.py index fc867b8..103028b 100644 --- a/bot.py +++ b/bot.py @@ -82,8 +82,8 @@ intents = discord.Intents.default() intents.message_content = True intents.reactions = True python = sys.executable -vision_enabled = False -askmultus_enabled = True +vision_enabled = bool.getenv("VISION_ENABLED") +askmultus_enabled = bool.getenv("ASKMULTUS_ENABLED") client = commands.Bot(command_prefix='-', intents=intents, owner_id = OWNER_ID)