diff --git a/plugins/admin.py b/plugins/admin.py index 94c1abe..125e34e 100755 --- a/plugins/admin.py +++ b/plugins/admin.py @@ -8,16 +8,6 @@ import time import subprocess -@hook.command(autohelp=False) -def admins(inp, notice=None, bot=None): - ".admins -- Lists bot's admins." - if bot.config["admins"]: - notice("Admins are: %s." % ", ".join(bot.config["admins"])) - else: - notice("No users are admins!") - return - - @hook.command(adminonly=True) def addadmin(inp, notice=None, bot=None, config=None): ".addadmin -- Make an admin. " \ diff --git a/plugins/info.py b/plugins/info.py new file mode 100644 index 0000000..ea9acfb --- /dev/null +++ b/plugins/info.py @@ -0,0 +1,16 @@ +from util import hook + +@hook.command(autohelp=False) +def admins(inp, notice=None, bot=None): + ".admins -- Lists bot's admins." + if bot.config["admins"]: + notice("Admins are: %s." % ", ".join(bot.config["admins"])) + else: + notice("No users are admins!") + return + + +@hook.command(autohelp=False) +def prefix(inp, notice=False, conn=False): + ".prefix -- Shows the bot's command prefix" + notice("The prefix is: \"%s\"" % conn.conf["command_prefix"]) \ No newline at end of file