From cdbc3073b99d7f1b5c8cc9f2076619c5bba58f8d Mon Sep 17 00:00:00 2001 From: Buginit <60842517+Buginit@users.noreply.github.com> Date: Sun, 9 Feb 2020 13:46:07 +0100 Subject: [PATCH] Update mumbleBot.py Fixed ignoring channel in config file. --- mumbleBot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mumbleBot.py b/mumbleBot.py index 32bb1d5..72e1597 100644 --- a/mumbleBot.py +++ b/mumbleBot.py @@ -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: