Merge pull request #70 from ghost/Buginit-config-channel-1

Fixed ignoring channel in config file.
This commit is contained in:
azlux 2020-02-22 20:35:19 +01:00 committed by GitHub
commit 951934602e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: