Discord.py not showing output

  bots, discord, discord.py, python

So, I’m new to discord.py and I was recently making my new bot. I made a coin flip command but for some reason it is not working. It isn’t showing any output at all. It is also not showing any kind of error in console. Here’s my code:

import discord
from discord.ext import commands

import random
import time

client= commands.Bot(command_prefix="ak!")


async def on_ready():
    print("Bot is ready")


async def coinflip(ctx):
    action= random.randint(0, 1)
    if(action == 0):
        flip= "Tails"
    elif(action == 1):
        flip= "Heads"

    embed= discord.Embed(title=f"{ctx.author.name} has flipped the coin!", description=f"{flip} it is!")
    await ctx.send(embed=embed)


I don’t know what I am doing wrong.

Source: Python Questions