You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
694 B
21 lines
694 B
2 years ago
|
import {BaseChatInputCommandData, CommandWithSubcommandsData} from "../types.js"
|
||
|
import {ApplicationCommandType} from "discord.js"
|
||
|
import {commandBotRestart} from "./restart.js"
|
||
|
import {commandBotShutdown} from "./shutdown.js"
|
||
|
import {commandBotRebuild} from "./rebuild.js"
|
||
|
|
||
|
class BotCommandData extends CommandWithSubcommandsData {
|
||
|
readonly baseDefinition: BaseChatInputCommandData = {
|
||
|
name: "bot",
|
||
|
type: ApplicationCommandType.ChatInput,
|
||
|
description: "Commands to manage the bot's status.",
|
||
|
}
|
||
|
|
||
|
readonly subcommands = [
|
||
|
commandBotRebuild,
|
||
|
commandBotRestart,
|
||
|
commandBotShutdown,
|
||
|
]
|
||
|
}
|
||
|
|
||
|
export const commandBot = new BotCommandData()
|