Files
Media-Server-Setup/bot/entrypoint.sh

8 lines
302 B
Bash

#!/bin/sh
# Run the bot if there is one; otherwise idle so the container stays up until code arrives.
if [ -f /app/main.py ]; then
exec python -u /app/main.py
fi
echo "discord-bot: no /app/main.py yet — drop the bot code into ./bot/app and 'docker compose restart discord-bot'"
exec sleep infinity