|
|
|
@ -2,6 +2,7 @@ import { sendInteractionResponse, SlashCommandOptions } from "@wackford/mod.ts";
|
|
|
|
|
import { ApplicationCommandOptionTypes } from "@wackford/discordeno.ts";
|
|
|
|
|
import { AIs, checkAI } from "../ai/index.ts";
|
|
|
|
|
import { db } from "../database.ts";
|
|
|
|
|
import { sendSocketMessage } from "../socket.ts";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "change",
|
|
|
|
@ -37,6 +38,14 @@ export default {
|
|
|
|
|
history: [],
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
sendSocketMessage(
|
|
|
|
|
interaction.user.username,
|
|
|
|
|
`ran /change; ${newName && newDesc ? "changed name and description" : (newName ? "changed name" : (newDesc ? "changed description" : ""))}`,
|
|
|
|
|
channelId,
|
|
|
|
|
"",
|
|
|
|
|
true
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
await sendInteractionResponse(bot, interaction, {
|
|
|
|
|
content: `Name: ${newName ?? "[unchanged]"}\nDescription: ${newDesc ?? "[unchanged]"}`,
|
|
|
|
|
});
|
|
|
|
|