quick hack to test something about python

This commit is contained in:
Eitan Adler 2013-04-15 15:29:22 -04:00
parent 8c3544d44a
commit 70f7bbb45a

View File

@ -2697,6 +2697,8 @@ def coin(cli, nick, chan, rest):
cli.msg(chan, "\2{0}\2 tosses a coin into the air...".format(nick)) 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)) var.LOGGER.logMessage("{0} tosses a coin into the air...".format(nick))
coin = random.choice(["heads", "tails"]) coin = random.choice(["heads", "tails"])
if random.randrange(0, 20) == 0:
coin = "on its side"
cmsg = "The coin lands on \2{0}\2.".format(coin) cmsg = "The coin lands on \2{0}\2.".format(coin)
cli.msg(chan, cmsg) cli.msg(chan, cmsg)
var.LOGGER.logMessage(cmsg) var.LOGGER.logMessage(cmsg)