add yaml stuff for later use

This commit is contained in:
Adora Laura Kalb 2024-09-04 10:47:06 +02:00
parent dc06ec1d20
commit 54f40a39c9
3 changed files with 33 additions and 2 deletions

6
.gitignore vendored
View file

@ -159,4 +159,8 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
config.py
config.py
config.yml
config.yaml
!example/*

26
example/config.yml Normal file
View file

@ -0,0 +1,26 @@
bot":
# Get the token by doing https://discordpy.readthedocs.io/en/stable/discord.html
# we need (privileged) Message Content Intent and the Send Message Bot permission
token: "aslkjdasjldjsaldjasl"
# Channel-ID of whitelisted Channels
channels:
- 12873281123123213213121328193
- 213021232132132131093801832
# Usernames of people that are whitelisted to send commands
whitelist:
- username
games:
# Display name
- displayname: "Minecraft Vanilla Server"
# slug is used in the actual chat commands
slug: "mc-v"
# systemd service name that you would use in 'sytemctl restart xyz'
systemd: "minecraft-vanilla01.service"
- displayname: "Minecraft AllTheMods 8"
slug: "mc-atm8"
systemd: "minecraft-allthemods8.service"

View file

@ -1 +1,2 @@
discord.py
discord.py
pyyaml