game-discord-bot/example/config.example.py
2024-01-01 19:31:29 +01:00

32 lines
1.1 KiB
Python

config = {
"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": [
12873281371823821328193, # laura lol, bot-test
21302918421093801832 # LiLa Network Clubhaus, game-control
],
# Username 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"
}
]
}