]> git.0d.be Git - botaradio.git/commitdiff
Update mumbleBot.py
authorBuginit <60842517+Buginit@users.noreply.github.com>
Sun, 9 Feb 2020 12:46:07 +0000 (13:46 +0100)
committerGitHub <noreply@github.com>
Sun, 9 Feb 2020 12:46:07 +0000 (13:46 +0100)
Fixed ignoring channel in config file.

mumbleBot.py

index 32bb1d56d9f9513f72f657fa14c2cc2c2cf9469c..72e159766782652fde66c69f58970f2546186883 100644 (file)
@@ -74,7 +74,6 @@ class MumbleBot:
 
         self.volume = self.volume_set
 
-        self.channel = args.channel
 
         root = logging.getLogger()
         formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
@@ -135,6 +134,11 @@ class MumbleBot:
         else:
             password = var.config.get("server", "password")
 
+        if args.channel:
+            self.channel = args.channel
+        else:
+            self.channel = var.config.get("server", "channel")
+
         if args.certificate:
             certificate = args.certificate
         else: