Add submission command to init cog. Clean up init cog.

This commit is contained in:
2025-02-20 11:27:20 -05:00
parent d3aaf642bd
commit b16132d61b
2 changed files with 7 additions and 9 deletions
+5 -7
View File
@@ -1,6 +1,4 @@
"""
Cog loader. Adds all command cogs to the bot.
"""
"""Cog loader. Adds all command cogs to the bot."""
from nextcord.ext import commands
@@ -9,20 +7,20 @@ from .delete import DeleteCog
from .help import HelpCog
from .refresh import RefreshCog
from .set import SetCog
from .submission import SubmissionCog
from .update import UpdateCog
from .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):
"""
Adds all command classes to 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(HelpCog())
bot.add_cog(RefreshCog(bot))
bot.add_cog(SetCog())
bot.add_cog(SubmissionCog())
bot.add_cog(UpdateCog(bot))
bot.add_cog(ViewCog())