'My Bot is not sending any messages after i execute the command

So I've been trying to execute a test command, but the bot is not responding. It's online and it doesn't gives any errors. Code I've Tried:

Cog command:

    @commands.command(pass_context=True)
    async def test(self, ctx):
            await ctx.send("Hey")  

Main File:

import discord
from discord.ext import commands
import os
import asyncio
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix='b!', case_insensitive = True, intents = intents)

@bot.event
async def on_ready():
    print('Heyo!')
    print('--------')
    await bot.change_presence(activity=discord.Game(name="Bounce Café"))


for filename in os.listdir("./cogs"):
    if filename.endswith(".py"):
        bot.load_extension(f"cogs.{filename[:-3]}")



bot.run('Token')


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source