complete restructure
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
"""Discord command groups; ``register_all`` wires every group onto the bot."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from vibe_bot.commands import admin, chat, conversation, custom_bots, images, speech
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from discord.ext import commands
|
||||
|
||||
from vibe_bot.app import App
|
||||
|
||||
|
||||
def register_all(bot: commands.Bot, app: App) -> None:
|
||||
"""Register every command group on the bot."""
|
||||
custom_bots.register(bot, app)
|
||||
speech.register(bot, app)
|
||||
images.register(bot, app)
|
||||
conversation.register(bot, app)
|
||||
admin.register(bot, app)
|
||||
chat.register(bot, app)
|
||||
Reference in New Issue
Block a user