Add module reload command
This commit is contained in:
parent
e588ffbb5d
commit
55ce1a2ef3
|
@ -5,7 +5,13 @@ def admin(bot,channel,nick,subcmd,*args):
|
|||
if not bot.is_admin: return
|
||||
if subcmd=="down":
|
||||
bot._bot.die("Stopping...")
|
||||
elif subcmd=="reload":
|
||||
bot.load_modules()
|
||||
|
||||
@plugin.command("rollcall")
|
||||
def rollcall(bot,channel,nick,*args):
|
||||
bot.say(channel,nick+": Hi! I'm minerbot! Commands: {}".format(", ".join("!"+cmd for cmd in plugin.cmds if cmd!=bot.cmd)))
|
||||
|
||||
@plugin.command("minerbotsrc")
|
||||
def minerbotsrc(bot,channel,nick,*args):
|
||||
bot.say(channel,nick+": https://tildegit.org/khuxkm/minerbot-phoenix")
|
||||
|
|
Loading…
Reference in New Issue