9 lines
363 B
Python
9 lines
363 B
Python
from discord.ext import commands
|
|
class help(commands.Cog):
|
|
def __init__(s,bot):s.bot=bot
|
|
@commands.command(name="help")
|
|
async def help(s,ctx):
|
|
names=sorted(c.qualified_name for c in s.bot.walk_commands() if not c.hidden)
|
|
await ctx.send("```\n"+"\n".join(";"+n for n in names)+"\n```")
|
|
async def setup(bot):await bot.add_cog(help(bot))
|