This repository has been archived on 2025-04-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
off-cooldown-bot/off_cooldown_bot/cogs/commands/__init__.py
T

16 lines
437 B
Python

"""Cog loader. Adds all command cogs to the bot."""
from nextcord.ext import commands
from off_cooldown_bot.cogs.commands.test import TestCog
from .birthday import BirthdayCog
# 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:
"""Add all command classes to bot."""
bot.add_cog(BirthdayCog())
bot.add_cog(TestCog(bot))