"""Cog loader. Adds all command cogs to the bot.""" from nextcord.ext import commands from agon.cogs.commands.create import CreateCog from agon.cogs.commands.delete import DeleteCog from agon.cogs.commands.get import GetCog from agon.cogs.commands.help import HelpCog from agon.cogs.commands.refresh import RefreshCog from agon.cogs.commands.set import SetCog from agon.cogs.commands.submission import SubmissionCog from agon.cogs.commands.update import UpdateCog from agon.cogs.commands.view import ViewCog # This function will be called when this extension is loaded. # It is necessary to add these functions to the bot. def setup(bot: commands.Bot) -> None: """Adds all command classes to bot.""" bot.add_cog(CreateCog(bot)) bot.add_cog(DeleteCog()) bot.add_cog(GetCog()) bot.add_cog(HelpCog()) bot.add_cog(RefreshCog(bot)) bot.add_cog(SetCog()) bot.add_cog(SubmissionCog()) bot.add_cog(UpdateCog(bot)) bot.add_cog(ViewCog())