Files
agon/cogs/commands/__init__.py
T

29 lines
928 B
Python

"""Cog loader. Adds all command cogs to the bot."""
from nextcord.ext import commands
from cogs.commands.create import CreateCog
from cogs.commands.delete import DeleteCog
from cogs.commands.get import GetCog
from cogs.commands.help import HelpCog
from cogs.commands.refresh import RefreshCog
from cogs.commands.set import SetCog
from cogs.commands.submission import SubmissionCog
from cogs.commands.update import UpdateCog
from 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())