Add an option for the pony to land on the tosser
This commit is contained in:
parent
f564a7a01e
commit
29d2a1f83e
@ -762,7 +762,8 @@
|
||||
"pony_toss": "\u0002{0}\u0002 tosses a pony into the air...",
|
||||
"pony_choices": [
|
||||
"hoof",
|
||||
"plot"
|
||||
"plot",
|
||||
"{nick}"
|
||||
],
|
||||
"pony_land": "The pony lands on \u0002{0}\u0002.",
|
||||
"pony_fly": "The pony flies away.",
|
||||
|
@ -8558,10 +8558,10 @@ def pony(cli, nick, chan, rest):
|
||||
|
||||
reply(cli, nick, chan, messages["pony_toss"].format(nick))
|
||||
|
||||
if random.random() < 1/3:
|
||||
if random.random() < 1 / (len(messages["pony_choices"]) + 1):
|
||||
reply(cli, nick, chan, messages["pony_fly"])
|
||||
else:
|
||||
pony = random.choice(messages["pony_choices"])
|
||||
pony = random.choice(messages["pony_choices"]).format(nick=nick)
|
||||
cmsg = messages["pony_land"].format(pony)
|
||||
reply(cli, nick, chan, cmsg)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user