summary refs log tree commit diff stats
path: root/src/main.py
diff options
context:
space:
mode:
authorlatex <latex@disroot.org>2023-03-27 00:45:26 +0200
committerlatex <latex@disroot.org>2023-03-27 00:45:26 +0200
commit8c43b5372b0928b0bc1d0eec93898f4927fbc1e3 (patch)
treed3780c3d2c89c09f1d53d7d7d8e16e1c215b0358 /src/main.py
downloadmumblecord-8c43b5372b0928b0bc1d0eec93898f4927fbc1e3.tar.gz
welcome to mumblecord
Diffstat (limited to 'src/main.py')
-rw-r--r--src/main.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main.py b/src/main.py
new file mode 100644
index 0000000..69f6a57
--- /dev/null
+++ b/src/main.py
@@ -0,0 +1,22 @@
+import asyncio
+import argparse
+import configparser
+import mumblecord
+
+parser = argparse.ArgumentParser(
+        prog="mumblecord",
+        description="Bridge Mumble and Discord")
+parser.add_argument("-c", "--config",
+                    help="the path to the configuration file",
+                    action="store", default="mumblecord.conf")
+args = parser.parse_args()
+
+conf = configparser.ConfigParser()
+conf.read(args.config)
+conf_mumble = conf["mumble"]
+conf_discord = conf["discord"]
+
+bot = mumblecord.Mumblecord(conf_mumble, conf_discord)
+
+while True:
+    pass