Update allowed for admin

I'm a rock
This commit is contained in:
azlux 2018-10-03 22:46:34 +02:00 committed by GitHub
parent 90f223fc47
commit a45cb24251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ class MumbleBot:
self.mumble.users[text.actor].send_message(var.config.get('strings', 'not_admin')) self.mumble.users[text.actor].send_message(var.config.get('strings', 'not_admin'))
elif command == var.config.get('command', 'update'): elif command == var.config.get('command', 'update'):
if not self.is_admin(user): if self.is_admin(user):
self.mumble.users[text.actor].send_message("Starting the update") self.mumble.users[text.actor].send_message("Starting the update")
tp = sp.check_output([var.config.get('bot', 'pip3_path'), 'install', '--upgrade', 'youtube-dl']).decode() tp = sp.check_output([var.config.get('bot', 'pip3_path'), 'install', '--upgrade', 'youtube-dl']).decode()
msg = "" msg = ""