fix duplicate 'on on'
This commit is contained in:
parent
548f5b3616
commit
21872f39bc
@ -2712,8 +2712,11 @@ 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"])
|
||||
if random.randrange(0, 20) == 0:
|
||||
coin = "on its side"
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user