Add water joke back in AND add prefix command

This commit is contained in:
minerobber 2019-01-31 02:38:56 +00:00
parent 579cdbe8b0
commit 79cc9ee811
1 changed files with 12 additions and 0 deletions

View File

@ -9,11 +9,23 @@ def admin(bot,channel,nick,subcmd,*args):
bot.load_modules()
elif subcmd=="nick":
bot._bot.conn.nick(args[0])
elif subcmd=="prefix":
bot.prefix = args[0]
@plugin.listener("water_joke")
def water_joke(bot,channel,nick,msg):
if msg.startswith("!water minerbot"):
bot.say(channel,"{}: BZZ-ZAP! Please don't water me! I'm not waterproofed yet!!!!! BZZ-BZZ-ZZZ-ZAP!".format(nick))
@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.listener("rollcall")
def rollcall_listen(bot,channel,nick,msg):
if bot.prefix!="!" and msg.startswith("!rollcall"):
rollcall(bot,channel,nick,*list())
@plugin.command("minerbotsrc")
def minerbotsrc(bot,channel,nick,*args):
bot.say(channel,nick+": https://tildegit.org/khuxkm/minerbot-phoenix")