fixed coin
This commit is contained in:
parent
f873ff60ae
commit
5dcec89eff
@ -8,17 +8,17 @@ class Fun():
|
|||||||
@commands.command()
|
@commands.command()
|
||||||
async def ping(self, ctx):
|
async def ping(self, ctx):
|
||||||
"""Ping, Pong"""
|
"""Ping, Pong"""
|
||||||
await ctx.send(ctx.author.mention + "Pong!")
|
await ctx.send(ctx.author.mention + " Pong!")
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def dice(self, ctx):
|
async def dice(self, ctx):
|
||||||
"""Throws a six-sided dice."""
|
"""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()
|
@commands.command()
|
||||||
async def coin(self, ctx):
|
async def coin(self, ctx):
|
||||||
"""Throws a coin."""
|
"""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()
|
@commands.command()
|
||||||
async def rps(self, ctx, userChoice : str=""):
|
async def rps(self, ctx, userChoice : str=""):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user