<gh_stars>1-10
# Imports
import discord
import random
from discord.ext import commands

# Create a class `games` which inherits from the `commands.Cog` class
class games(commands.Cog):
    def __init__(self, client):
        self.client = client
    
    # Command for `coinflip` 
    @commands.command(aliases = ['cf', 'tosscoin', 'tc'])
    async def coinflip(self, ctx):
        cf_res = ['Heads', 'Tails']
        res = random.choice(cf_res)
        embed = discord.Embed(title = "Coinflip", description = f'Result = {res}!', 
        color = discord.Color.gold())
        await ctx.send(embed = embed)

    # Command for `die toss`
    @commands.command(aliases = ['die', '6face'])
    async def tossdie(self, ctx):
        td_res = [int(i) for i in range(1,7)]
        res = random.choice(td_res)
        embed = discord.Embed(title = "Toss A Die", description = f'Result = {res}!',
        color = discord.Color.magenta())
        await ctx.send(embed = embed)

# Setup cogs `games`
def setup(client):
    client.add_cog(games(client))