PagerMaid-Discord/pagermaid/modules/help.py

19 lines
506 B
Python

import discord
from pagermaid import prefix
from discord.ext import commands
class Help(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def help(self, ctx):
embed = discord.Embed(title="帮助菜单", description="以下是 bot 支持的命令列表", color=0xff0000)
embed.add_field(name=f"{prefix}help", value="查看此帮助菜单。", inline=True)
await ctx.send(embed=embed)
def setup(bot):
bot.add_cog(Help(bot))