From 1ee80bf051148a2342b8f3d10e520d4f9438278f Mon Sep 17 00:00:00 2001 From: jcao219 Date: Fri, 29 Jul 2011 18:07:59 -0500 Subject: [PATCH] !rehash removed, docs added for !back --- wolfgame.py | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/wolfgame.py b/wolfgame.py index 833e5d8..7898de3 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -194,15 +194,6 @@ def restart_program(cli, nick, chan, rest): print("RESTARTING") python = sys.executable os.execl(python, python, *sys.argv) - - - -@cmd("rehash", admin_only=True) -def rehash(cli, nick, chan, rest): - reset(cli) - imp.reload(var) - imp.reload(botconfig) - cli.msg(chan, "Configuration reloaded") @@ -283,7 +274,7 @@ def pinger(cli, nick, chan, rest): @cmd("away", raw_nick=True) @pmcmd("away", raw_nick=True) def away(cli, nick, *rest): - """Use this to toggle your away status (for !ping).""" + """Use this to activate your away status (so you aren't pinged).""" cloak = parse_nick(nick)[3] nick = parse_nick(nick)[0] if cloak in var.AWAY: @@ -297,6 +288,7 @@ def away(cli, nick, *rest): @cmd("back", raw_nick=True) @pmcmd("back", raw_nick=True) def back_from_away(cli, nick, *rest): + """Unmarks away status""" cloak = parse_nick(nick)[3] nick = parse_nick(nick)[0] if cloak not in var.AWAY: @@ -1045,12 +1037,12 @@ def transition_day(cli, gameid=0): # Was visited by a crow cli.msg(target, ("You suddenly remember that you were startled by the loud "+ "sound of the flapping of wings during the walk back home.")) - elif target in var.ROLES["village drunk"]: - # Crow dies because of tiger (HANGOVER) - cli.msg(chan, ("The bones of \u0002{0}\u0002, a werecrow, "+ - "were found near the village drunk's house. "+ - "The drunk's pet tiger probably ate him.").format(crow)) - dead.append(crow) + # elif target in var.ROLES["village drunk"]: + ## Crow dies because of tiger (HANGOVER) + # cli.msg(chan, ("The bones of \u0002{0}\u0002, a werecrow, "+ + # "were found near the village drunk's house. "+ + # "The drunk's pet tiger probably ate him.").format(crow)) + # dead.append(crow) cli.msg(chan, "\n".join(message)) for deadperson in dead: if not del_player(cli, deadperson):