24 lines
675 B
Python
24 lines
675 B
Python
"""
|
|
Cog loader. Adds all command cogs to the bot.
|
|
"""
|
|
|
|
from nextcord.ext import commands
|
|
|
|
# Command classes
|
|
from .message_management import MessageManagementCog
|
|
from .settings_management import SettingsManagementCog
|
|
from .data_management import DataManagementCog
|
|
|
|
# Views for commands
|
|
from .views.update_username_verify import UpdateUsernameVerifyView
|
|
|
|
# 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(DataManagementCog(bot))
|
|
bot.add_cog(MessageManagementCog(bot))
|
|
bot.add_cog(SettingsManagementCog())
|