aboutsummaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2019-12-07 13:09:41 +0100
committernico <nico@magicbroccoli.de>2019-12-07 13:09:41 +0100
commit9080c719dc0252b43fd894d71cf7d410ae8b0cb6 (patch)
tree15263862c42503ff1c2103e08d6aacce273127b7 /config.py
TeamSpeak datebased GroupAssigner
cleaned up working release + properly register for servernotify events + process only voice_clients + properly check if client is already a group member + logging
Diffstat (limited to 'config.py')
-rw-r--r--config.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/config.py b/config.py
new file mode 100644
index 0000000..d0dc061
--- /dev/null
+++ b/config.py
@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+import json
+
+with open("config.json", "r", encoding="utf-8") as file:
+ config = json.load(file)
+
+
+class Config(object):
+ # connection arguments
+ HOST = config['host']
+ PORT = config['port']
+ USER = config['user']
+ PW = config['password']
+ SID = config['server_id']
+
+ # assignment settings
+ GID = config['gid']