updated repo to sample nextcord project.

This commit is contained in:
alwayscompiling
2022-06-22 22:13:15 -04:00
parent 692d43f8ae
commit b58e28aa6e
21 changed files with 300 additions and 2371 deletions
+19
View File
@@ -0,0 +1,19 @@
from nextcord.ext import commands
from .help_command import NewHelpCommand
class HelpCog(commands.Cog):
def __init__(self, bot: commands.Bot):
self.bot = bot
self._original_help_command = bot.help_command
bot.help_command = NewHelpCommand()
bot.help_command.cog = self
def cog_unload(self):
self.bot.help_command = self._original_help_command
# setup functions for bot
def setup(bot: commands.Bot):
bot.add_cog(HelpCog(bot))