Discord Bot that controls power to physical machine
  • Python 97.2%
  • Dockerfile 2.8%
Find a file
2024-07-03 16:33:56 +00:00
.github/workflows Merge pull request #50 from kharms-dev/renovate/docker-login-action-3.x 2024-07-03 16:25:22 +00:00
app Logging for DCS 2024-06-25 02:25:25 +01:00
tests Resolve merge conflicts 2023-01-30 20:39:18 +00:00
.env.example Update .env.example 2023-01-31 17:11:34 +01:00
.gitignore Updated git ignore 2024-06-25 02:12:55 +01:00
docker-compose.yml Resolve merge conflicts 2023-01-30 20:39:18 +00:00
Dockerfile Update Dockerfile 2024-07-03 16:33:56 +00:00
Pipfile Update dependency py-cord to v2.5.0 2024-07-03 16:30:33 +00:00
Pipfile.lock Update dependency py-cord to v2.5.0 2024-07-03 16:30:33 +00:00
readme.md Resolve merge conflicts 2023-01-30 20:39:18 +00:00
renovate.json Remove DockerHub as target, add renovate integration 2022-10-28 11:21:33 +01:00

Discord Power Bot

Usage

  • 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 for boot, reboot and shutdown cooldown timers in seconds, if left empty it defaults to 300.
  • Optional: set POWERBOT_ROLE to limit access to boot, reboot and shutdown. 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