A Discord bot to stop and start games
Find a file
2024-09-04 10:47:06 +02:00
.vscode add some functionality 2024-01-01 13:10:24 +01:00
example add yaml stuff for later use 2024-09-04 10:47:06 +02:00
.gitignore add yaml stuff for later use 2024-09-04 10:47:06 +02:00
app.py make bot responsive in dms without mention 2024-01-01 18:40:00 +01:00
lib.py fix status command 2024-01-01 15:12:32 +01:00
LICENSE add license 2024-01-01 19:31:02 +01:00
readme.md update documentation 2024-01-01 19:31:29 +01:00
requirements.txt add yaml stuff for later use 2024-09-04 10:47:06 +02:00

game-bot

This is a Bot by @lauralani to let her friends start, stop and display the status of various game servers.

Prerequisites

Get the Discord Bot token by following this guide https://discordpy.readthedocs.io/en/stable/discord.html

Discord privileges needed: Privileged Permissions:

  • Message Content Bot Permissions:
  • Send Message Bot permission

Installation

# clone this repo
cp example/config.example.py config.py

# edit and fill config.py
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt

python3 app.py

For setting this bot up as a systemd service, you can take a look at the systemd service file in the example directory.

Features

  • modular configuration of services/game servers
  • use chat commands in DM and in channels

Commands

The bot has the following commands:

  • help: Get help for the commands
  • info: List all available games, their status and their <slug>
  • start <slug>: Start game with slug <slug>
  • stop <slug>: Stop game with slug <slug>
  • restart <slug>: Stop game with slug <slug>
  • status <slug>: Show status for game with slug <slug>

License

discord-bot is available under the MIT license. See the LICENSE file for more info.