Files
dakiny-bot/dakiny_bot/cogs/commands/__init__.py
T

29 lines
1.0 KiB
Python

"""Cog loader. Adds all command cogs to the bot."""
from nextcord.ext import commands
from dakiny_bot.cogs.commands.record import RecordCog
from dakiny_bot.cogs.commands.refresh import RefreshCog
from dakiny_bot.cogs.commands.remove import RemoveCog
from dakiny_bot.cogs.commands.request import RequestCog
from dakiny_bot.cogs.commands.set import SetCog
from dakiny_bot.cogs.commands.settings import SettingsCog
from dakiny_bot.cogs.commands.test import TestCog
from dakiny_bot.cogs.commands.time import TimeCog
from dakiny_bot.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(RecordCog(bot))
bot.add_cog(RefreshCog(bot))
bot.add_cog(RemoveCog())
bot.add_cog(RequestCog(bot))
bot.add_cog(SetCog())
bot.add_cog(SettingsCog())
bot.add_cog(TestCog(bot))
bot.add_cog(TimeCog())
bot.add_cog(ViewCog())