Added first steam API command
This commit is contained in:
parent
82228b17eb
commit
ca91cfddaf
7 changed files with 188 additions and 3 deletions
18
cogs/fun/coinflip.py
Normal file
18
cogs/fun/coinflip.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
import discord
|
||||
import random
|
||||
from discord.ext import commands
|
||||
|
||||
class Coinflip(commands.Cog):
|
||||
|
||||
def __init__(self, client):
|
||||
self.client = client
|
||||
|
||||
@commands.command(name="coinflip", description="Flips a coin and reacts with the result", aliases=["coin", "flip"])
|
||||
async def coinflip(self, ctx):
|
||||
if random.randint(0, 1) == 0:
|
||||
await ctx.message.add_reaction("🌑")
|
||||
else:
|
||||
await ctx.message.add_reaction("🌕")
|
||||
|
||||
def setup(client):
|
||||
client.add_cog(Coinflip(client))
|
Loading…
Add table
Add a link
Reference in a new issue