overhauled help

This commit is contained in:
neersighted 2012-02-28 10:03:43 +08:00 committed by lukeroge
parent 0fdf370733
commit c58192f72c
58 changed files with 124 additions and 117 deletions

View file

@ -45,14 +45,14 @@ flirts = ["I bet your name's Mickey, 'cause you're so fine.",
@hook.command(autohelp=False)
def flirt(inp, nick=None, me=None, input=None):
".flirt -- make mau5bot flirt!"
".flirt <user> -- Make the bot flirt with <user>."
msg = "flirts with " + nick + "... \"" + random.choice(flirts) + "\""
if re.match("^[A-Za-z0-9_|.-\]\[]*$", inp.lower()) and inp != "":
msg = "flirts with " + inp + "... \"" + random.choice(flirts) + "\""
if inp == input.conn.nick.lower() or inp == "itself":
msg = "flirts with itself"
msg = "flirts with itself!"
me(msg)