Per channel request

This commit is contained in:
Eitan Adler 2013-05-26 10:00:35 +02:00
parent 3df0c148e9
commit 1724ca5dc8
2 changed files with 8 additions and 9 deletions

View File

@ -1394,7 +1394,7 @@ def transition_day(cli, gameid=0):
elif victim in var.ROLES["harlot"]: # Attacked harlot, yay no kill
if var.HVISITED.get(victim):
message.append("The wolves' selected victim was a harlot, "+
"but she wasn't home.")
"but s/he wasn't home.")
if victim and (victim not in var.ROLES["harlot"] or # not a harlot
not var.HVISITED.get(victim)): # harlot stayed home
message.append(("The dead body of \u0002{0}\u0002, a "+
@ -2716,12 +2716,12 @@ def coin(cli, nick, chan, rest):
cli.msg(chan, "\2{0}\2 tosses a coin into the air...".format(nick))
var.LOGGER.logMessage("{0} tosses a coin into the air...".format(nick))
coin = random.choice(["heads", "tails"])
specialty = random.randrange(0,20)
if specialty == 0:
coin = "its side"
if specialty == 1:
coin = botconfig.NICK
cmsg = "The coin lands on \2{0}\2.".format(coin)
#specialty = random.randrange(0,20)
#if specialty == 0:
# coin = "its side"
#if specialty == 1:
# coin = botconfig.NICK
#cmsg = "The coin lands on \2{0}\2.".format(coin)
cli.msg(chan, cmsg)
var.LOGGER.logMessage(cmsg)

View File

@ -90,8 +90,7 @@ 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.",
"As s/he is about to be lynched, \u0002{0}\u0002, the \u0002{1}\u0002, throws a grenade at the mob. The grenade explodes early.",
"As the real wolves run away from the murderous mob, \u0002{0}\u0002 trips and falls. It is discovered that (s)he was a \u0002{1}\u0002.")
"As s/he is about to be lynched, \u0002{0}\u0002, the \u0002{1}\u0002, throws a grenade at the mob. The grenade explodes early.")
import botconfig