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.

18 lines
673 B

import { sendInteractionResponse, SlashCommandOptions } from "@wackford/mod.ts";
import { AIs, checkAI } from "../ai/index.ts";
export default {
name: "debug",
description: "shows debug information",
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}\nHistory: ${JSON.stringify(AI.memory ?? AI.history ?? "[unused]")}`,
private: true
});
},
} as SlashCommandOptions;