fixed coin

This commit is contained in:
Akumatic 2019-01-22 01:16:02 +01:00
parent f873ff60ae
commit 5dcec89eff

View File

@ -13,12 +13,12 @@ class Fun():
@commands.command()
async def dice(self, ctx):
"""Throws a six-sided dice."""
await ctx.send(ctx.author.mention + " You rolled a D6: " + random.randint(1,6))
await ctx.send(ctx.author.mention + " You rolled a D6: " + str(random.randint(1,6)))
@commands.command()
async def coin(self, ctx):
"""Throws a coin."""
await ctx.send(ctx.author.mention + " Your coin flip is " + "Heads" if (random.random() < 0.5) else "Tails")
await ctx.send(ctx.author.mention + " Your coin flip is " + ("Head" if (random.random() < 0.5) else "Tail"))
@commands.command()
async def rps(self, ctx, userChoice : str=""):