27 lines
641 B
Python
27 lines
641 B
Python
"""
|
|
Cog loader. Adds all command cogs to the bot.
|
|
"""
|
|
|
|
from nextcord.ext import commands
|
|
|
|
from .create import CreateCog
|
|
from .delete import DeleteCog
|
|
from .help import HelpCog
|
|
from .refresh import RefreshCog
|
|
from .set import SetCog
|
|
from .update import UpdateCog
|
|
|
|
|
|
# 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(CreateCog(bot))
|
|
bot.add_cog(DeleteCog())
|
|
bot.add_cog(HelpCog())
|
|
bot.add_cog(RefreshCog(bot))
|
|
bot.add_cog(SetCog())
|
|
bot.add_cog(UpdateCog(bot))
|