Add flip command

I put it under dice so it could use the same RNG.
This commit is contained in:
Robert Miles 2019-11-01 12:29:05 -04:00
parent 62abae9535
commit ffcf857111
1 changed files with 4 additions and 0 deletions

View File

@ -24,3 +24,7 @@ def dndice(bot,channel,nick,roll,*args):
# raise Exception("minerobber check the logs")
plugin.alias("dice","dndice")
@plugin.command("flip")
def flip(bot,channel,nick,*args):
bot.say(channel,"{}: Coin lands {}".format(nick,RNG.choice(["Heads","Tails"])))