From 54f40a39c92cc87c745c8c6ef55aa3fda8f6f839 Mon Sep 17 00:00:00 2001 From: Adora Laura Kalb Date: Wed, 4 Sep 2024 10:47:06 +0200 Subject: [PATCH] add yaml stuff for later use --- .gitignore | 6 +++++- example/config.yml | 26 ++++++++++++++++++++++++++ requirements.txt | 3 ++- 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 example/config.yml diff --git a/.gitignore b/.gitignore index bc8bd2d..5b78ba4 100644 --- a/.gitignore +++ b/.gitignore @@ -159,4 +159,8 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ -config.py \ No newline at end of file +config.py +config.yml +config.yaml + +!example/* diff --git a/example/config.yml b/example/config.yml new file mode 100644 index 0000000..54f96f7 --- /dev/null +++ b/example/config.yml @@ -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" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 503dba9..3cc46ef 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -discord.py \ No newline at end of file +discord.py +pyyaml \ No newline at end of file