Update mumbleBot.py

Fixed ignoring channel in config file.
This commit is contained in:
Buginit 2020-02-09 13:46:07 +01:00 committed by GitHub
parent 5599a7a1d7
commit cdbc3073b9

View 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: