disabled many plugins
This commit is contained in:
parent
0ba2001b62
commit
7cce9bf27e
119 changed files with 0 additions and 20 deletions
25
disabled_stuff/coin.py
Normal file
25
disabled_stuff/coin.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
import random
|
||||
|
||||
from util import hook
|
||||
|
||||
|
||||
@hook.command(autohelp=False)
|
||||
def coin(inp, action=None):
|
||||
"""coin [amount] -- Flips [amount] of coins."""
|
||||
|
||||
if inp:
|
||||
try:
|
||||
amount = int(inp)
|
||||
except (ValueError, TypeError):
|
||||
return "Invalid input!"
|
||||
else:
|
||||
amount = 1
|
||||
|
||||
if amount == 1:
|
||||
action("flips a coin and gets {}.".format(random.choice(["heads", "tails"])))
|
||||
elif amount == 0:
|
||||
action("makes a coin flipping motion with its hands.")
|
||||
else:
|
||||
heads = int(random.normalvariate(.5 * amount, (.75 * amount) ** .5))
|
||||
tails = amount - heads
|
||||
action("flips {} coins and gets {} heads and {} tails.".format(amount, heads, tails))
|
Reference in a new issue