Add module reload command

This commit is contained in:
minerobber 2018-12-15 06:54:11 +00:00
parent e588ffbb5d
commit 55ce1a2ef3
1 changed files with 6 additions and 0 deletions

View File

@ -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")