Added admin command, cleaned up file

This commit is contained in:
neersighted 2012-03-11 22:24:52 -08:00
parent 54d84dcd09
commit fbd36b47be

View file

@ -8,6 +8,18 @@ import sys
import subprocess
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("exit", autohelp = False)
@hook.command(autohelp = False)