Changed design to be one class per file.

This commit is contained in:
alwayscompiling
2022-08-11 22:44:22 -04:00
parent 349fdfe18d
commit b2acafd6e7
4 changed files with 23 additions and 17 deletions
+6 -6
View File
@@ -5,14 +5,14 @@ Cog loader. Adds all command classes as cogs to the bot.
from nextcord.ext import commands
# Command classes
from .message_management import PostHighscores
from .settings_management import Register
from .table_management import DeleteScores
from .message_management import MessageManagement
from .settings_management import SettingsManagement
from .table_management import TableManagement
# 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."""
bot.add_cog(DeleteScores())
bot.add_cog(PostHighscores(bot))
bot.add_cog(Register())
bot.add_cog(TableManagement())
bot.add_cog(MessageManagement(bot))
bot.add_cog(SettingsManagement())