Have you tried doing it in just one file? Example:
import discord
from discord.ext import commands
intents = discord.Intents.all()
intents.members = True
bot = commands.Bot(command_prefix="!", intents=intents)
@bot.event
async def on_ready():
print(f"My Bot is Online !")
@bot.command()
async def coucou(ctx):
await ctx.send("You say coucou, i say coucou !")
bot.run("TOKEN")