No description
  • Python 96.7%
  • Dockerfile 3.3%
Find a file
2024-06-24 19:16:59 +01:00
.github/workflows Update actions/checkout action to v4 2023-09-11 01:35:13 +00:00
app Added Connection Error passing for offline servers 2024-06-24 19:16:59 +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 Ignore DS_Store files 2023-02-18 12:10:42 +00:00
docker-compose.yml Resolve merge conflicts 2023-01-30 20:39:18 +00:00
Dockerfile Update python:3.11-alpine Docker digest to 5d769f9 2023-09-13 10:40:18 +00:00
Pipfile Merge pull request #61 from mylesagray/master 2024-06-24 18:06:05 +00:00
Pipfile.lock Merged Upstream 2024-06-24 19:09:26 +01: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