A simple, lightweight tool used for documemting your discord.py commands
importdiscordfromdiscord.extimportcommandsfromdpy_docsimportDocGenbot=commands.Bot(command_prefix="!", intents=discord.Intents.all())
docs=DocGen(bot)
@docs.document_code()@bot.command()asyncdeffoo(ctx: commands.Context) ->None:
"""This is an example command"""returnbot.run(TOKEN)Note: You must add @docs.generate_docs() before @bot.command(). This is due to the current code logic, and might be changed in the future.