- Fill out
.env
file with your Discord token and URLs. - Fill out
servers.json
with your server details and types to allow querying of clients on power requests - Optional: set
COOLDOWN
forboot
,reboot
andshutdown
cooldown timers in seconds, if left empty it defaults to300
. - Optional: set
POWERBOT_ROLE
to limit access toboot
,reboot
andshutdown
. This takes a comma separated list of either role names or role ids, if left unset defaults to the@everyone
role.
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 -d
Bare docker cli:
docker run --env-file=/.env --restart=unless-stopped -v servers.json:/home/appuser/servers.json ghcr.io/mylesagray/discord-power-bot:latest