From 4f9f1c035c5f13633b775a0a55ae1e8f2184667a Mon Sep 17 00:00:00 2001 From: Jimmy Cao Date: Fri, 21 Sep 2012 01:05:48 +0000 Subject: [PATCH 1/2] make the rules display the channel specified in the botconfig.py file (thanks vgr) --- settings/wolfgame.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/settings/wolfgame.py b/settings/wolfgame.py index 1bf8ef8..3d825c5 100644 --- a/settings/wolfgame.py +++ b/settings/wolfgame.py @@ -72,7 +72,10 @@ LYNCH_MESSAGES = ("The villagers, after much debate, finally decide on lynching "Under a lot of noise, the pitchfork-bearing villagers lynch \u0002{0}\u0002, who turned out to be... a \u0002{1}\u0002.", "The mob drags a protesting \u0002{0}\u0002 to the hanging tree. S/He succumbs to the will of the horde, and is hanged. It is discovered (s)he was a \u0002{1}\u0002.", "Resigned to his/her fate, \u0002{0}\u0002 is led to the gallows. After death, it is discovered (s)he was a \u0002{1}\u0002.") -RULES = ("#wolfgame channel rules: 1) Be nice to others. 2) Do not share information "+ + +import botconfig + +RULES = (botconfig.CHANNEL + " channel rules: 1) Be nice to others. 2) Do not share information "+ "after death. 3) No bots allowed. 4) Do not play with clones.\n"+ "5) Do not quit unless you need to leave. 6) No swearing and keep it "+ "family-friendly. 7) Do not paste PM's from the bot during the game. "+ From a59f69c32ba4b6745dffd14702b0769edc58974b Mon Sep 17 00:00:00 2001 From: Nick Zolotko Date: Wed, 17 Oct 2012 20:16:07 -0700 Subject: [PATCH 2/2] PM Role Commands from Bot Took out ! in both Harlot and G Angel PM messages. Added the command character var to the detective role PM Message. --- modules/wolfgame.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 0e1c640..20b5387 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -2111,7 +2111,7 @@ def transition_night(cli): cli.msg(harlot, ('You are a \u0002harlot\u0002. '+ 'You may spend the night with one person per round. '+ 'If you visit a victim of a wolf, or visit a wolf, '+ - 'you will die. Use !visit to visit a player.')) + 'you will die. Use visit to visit a player.')) else: cli.notice(harlot, "You are a \02harlot\02.") # !simple pm(cli, harlot, "Players: "+", ".join(pl)) @@ -2124,7 +2124,7 @@ def transition_night(cli): cli.msg(g_angel, ('You are a \u0002guardian angel\u0002. '+ 'It is your job to protect the villagers. If you guard a'+ ' wolf, there is a 50/50 chance of you dying, if you guard '+ - 'a victim, they will live. Use !guard to guard a player.')) + 'a victim, they will live. Use guard to guard a player.')) else: cli.notice(g_angel, "You are a \02guardian angel\02.") # !simple pm(cli, g_angel, "Players: " + ", ".join(pl)) @@ -2140,7 +2140,7 @@ def transition_night(cli): "identity of all users, even traitors.\n"+ "But, each time you use your ability, you risk a 2/5 "+ "chance of having your identity revealed to the wolves. So be "+ - "careful. Use \"!id\" to identify any player during the day.")) + "careful. Use \"{0}id\" to identify any player during the day.").format(botconfig.CMD_CHAR)) else: cli.notice(dttv, "You are a \02detective\02.") # !simple pm(cli, dttv, "Players: " + ", ".join(pl))