Okay so I want to make a test command and have it run the output of a cog that I have called help.py. And I don't really know what to do here
My Code:
import discord
from discord.ext import commands
import help
@bot.command()
async def test(ctx, *, commands=None):
if commands == help:
exec(open('help.py').read())
await ctx.send(f"{commands} has been ran. Does it work?")
I have no clue on how to make it "run" the file in a way and print the output into discord but I think I have it reading the file but I need it to run the help command inside of the test command and print to discord. Sorry if this is confusing