modified: Dockerfile

modified:   bot.py
This commit is contained in:
SimolZimol
2024-09-02 20:11:35 +02:00
parent eedfd5cfa6
commit e9d1a15c0d
2 changed files with 4 additions and 2 deletions

View File

@@ -25,6 +25,8 @@ ENV FLASK_SECRET_KEY=$FLASK_SECRET_KEY
ENV ADMIN_USER=$ADMIN_USER ENV ADMIN_USER=$ADMIN_USER
ENV ADMIN_PASS=$ADMIN_PASS ENV ADMIN_PASS=$ADMIN_PASS
ENV FLASK_ENV=development ENV FLASK_ENV=development
ENV VISION_ENABLED=$VISION_ENABLED
ENV ASKMULTUS_ENABLED=$ASKMULTUS_ENABLED
# Startbefehl für das Webpanel # Startbefehl für das Webpanel
CMD ["python", "app.py"] CMD ["python", "app.py"]

4
bot.py
View File

@@ -82,8 +82,8 @@ intents = discord.Intents.default()
intents.message_content = True intents.message_content = True
intents.reactions = True intents.reactions = True
python = sys.executable python = sys.executable
vision_enabled = False vision_enabled = bool.getenv("VISION_ENABLED")
askmultus_enabled = True askmultus_enabled = bool.getenv("ASKMULTUS_ENABLED")
client = commands.Bot(command_prefix='-', intents=intents, owner_id = OWNER_ID) client = commands.Bot(command_prefix='-', intents=intents, owner_id = OWNER_ID)