Discord Bot that controls power to physical machine
- Python 97.2%
- Dockerfile 2.8%
| .github/workflows | ||
| app | ||
| tests | ||
| .env.example | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| Pipfile | ||
| Pipfile.lock | ||
| readme.md | ||
| renovate.json | ||
Discord Power Bot
Usage
- 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 -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