- Fill out
.envfile with your Discord token and URLs. - Fill out
servers.jsonwith your server details and types to allow querying of clients on power requests - Optional: set
COOLDOWNforboot,rebootandshutdowncooldown timers in seconds, if left empty it defaults to300. - Optional: set
POWERBOT_ROLEto limit access toboot,rebootandshutdown. This takes a comma separated list of either role names or role ids, if left unset defaults to the@everyonerole.
For WOL service, use this Docker image: https://github.com/daBONDi/go-rest-wol
For the shutdown, reboot and status URLs, a service that responds to HTTP GETs with code 200 on success is fine, we are using Airytec SwitchOff.
docker compose up -dBare docker cli:
docker run --env-file=/.env --restart=unless-stopped -v servers.json:/home/appuser/servers.json ghcr.io/mylesagray/discord-power-bot:latest