From da0681b90db27e7cea9b624326ae95429efe8f23 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Wed, 6 Nov 2013 22:39:32 +0100 Subject: [PATCH 1/2] Show admins which are !away in !admins --- modules/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 7d776f1..e2fdf3a 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -2683,7 +2683,7 @@ def show_admins(cli, nick, chan, rest): if not var.ADMIN_PINGING: return if (is_admin(cloak) and 'G' not in status and - user != botconfig.NICK and cloak not in var.AWAY): + user != botconfig.NICK): admins.append(user) @hook("endofwho", hookid = 4) From d34207dc67dffd3a900fb6b53bfde0ed956c4a79 Mon Sep 17 00:00:00 2001 From: Kyle Fahringer Date: Sun, 10 Nov 2013 13:46:06 -0500 Subject: [PATCH 2/2] add three more pictures wolfbot needs more gif --- modules/wolfgame.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index e2fdf3a..922cab9 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -1391,9 +1391,17 @@ def transition_day(cli, gameid=0): "tragedy.").format(victim, var.get_role(victim))) dead.append(victim) var.LOGGER.logBare(victim, "KILLED") - if random.random() < 0.01: + wut = random.random() + if wut < 0.01: # this is pointless. message.append("https://i.imgur.com/nO8rZ.gif") + elif wut < 0.02: + message.append("https://i.imgur.com/uGVfZ.jpg") + elif wut < 0.03: + message.append("https://i.imgur.com/mUcM09n.gif") + elif wut < 0.04: + message.append("https://i.imgur.com/P7TEGyQ.gif") + if victim in var.GUNNERS.keys() and var.GUNNERS[victim]: # victim had bullets! if random.random() < var.GUNNER_KILLS_WOLF_AT_NIGHT_CHANCE: wc = var.ROLES["werecrow"][:]