如何对特定的齿轮文件夹进行帮助命令

时间:2020-11-01 18:21:06

标签: python python-3.x discord.py

我想创建一个帮助命令,该命令仅提及来自特定cog文件夹的命令,在本例中为mods文件夹,以便该机器人可以使用namedescription提及每个命令 我该怎么办?

我的代码:

import discord
from discord.ext import commands

class Help(commands.Cog):
    def __init__(self, bot):
        self.bot = bot


    @commands.command()
    async def help(self, ctx):
        pass


def setup(bot):
    bot.add_cog(Help(bot))

我的齿轮文件夹: enter image description here

0 个答案:

没有答案