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.
17 lines
611 B
17 lines
611 B
import { sendInteractionResponse, SlashCommandOptions } from "@wackford/mod.ts";
|
|
import { AIs, checkAI } from "../ai/index.ts";
|
|
|
|
export default {
|
|
name: "status",
|
|
description: "shows the current name and description of the chatbot",
|
|
execute: async (bot, interaction) => {
|
|
const AI = AIs[interaction?.channelId?.toString() as string];
|
|
|
|
if (!checkAI(bot, interaction, AI)) return;
|
|
|
|
await sendInteractionResponse(bot, interaction, {
|
|
content: `Name: ${AI.name}\nDescription: ${AI.description}\nAI: ${AI.constructor.name}`,
|
|
});
|
|
},
|
|
} as SlashCommandOptions;
|