Added admin command, cleaned up file
This commit is contained in:
parent
54d84dcd09
commit
fbd36b47be
1 changed files with 33 additions and 21 deletions
|
@ -8,6 +8,18 @@ import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
|
@hook.command("owners", autohelp = False)
|
||||||
|
@hook.command(autohelp = False)
|
||||||
|
def admins(inp, bot = None):
|
||||||
|
admins = str(bot.config["admins"])
|
||||||
|
admins = admins.replace("u'", "")
|
||||||
|
admins = admins.replace("'", "")
|
||||||
|
admins = admins.replace("[", "")
|
||||||
|
admins = admins.replace("]", "")
|
||||||
|
return admins
|
||||||
|
|
||||||
|
|
||||||
@hook.command("quit", autohelp = False)
|
@hook.command("quit", autohelp = False)
|
||||||
@hook.command("exit", autohelp = False)
|
@hook.command("exit", autohelp = False)
|
||||||
@hook.command(autohelp = False)
|
@hook.command(autohelp = False)
|
||||||
|
|
Reference in a new issue