Moved all commands into single commands cog.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
Cog loader. Adds all command classes as cogs to the bot.
|
||||
"""
|
||||
|
||||
from nextcord.ext import commands
|
||||
|
||||
# Command classes
|
||||
from .delete_scores import DeleteScores
|
||||
from .post_highscores import PostHighscores
|
||||
from .register import Register
|
||||
|
||||
# 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())
|
||||
Reference in New Issue
Block a user