A Discord bot that uses the Portainer API to start and close the Valheim Server Docker container when needed.
This approach minimizes resource consumption since the valheim server docker image I use doesn't support auto pausing the server when there are no players on the server.
The bot registers 3 slash commands:
- /start
- /stop
- /status
- add multiple guilds command refresh
- helm chart release
- improve release workflow
- add back portainer support alongside kubernetes
- add odin support
TODO
- Invite your bot on a server by using the OAuth2 URL Generator from here: https://discord.com/developers/applications
- Copy
.env.example
to.env
and update the variables with yours - Run
docker compose up -d
to start the bot
You can deploy this bot as a container in a stack alongside the Valheim Server.
- Copy the service from the docker-compose.yaml file into your stack
- Add environment variables to your stack to match what is required by the container
- Redeploy your stack