feat: initial project prototype

This commit is contained in:
2025-02-10 18:04:33 -08:00
parent 70e7649c0c
commit ae08bbdfc0
28 changed files with 5760 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import {
ApplicationIntegrationType,
SlashCommandBuilder,
InteractionContextType,
} from "discord.js";
const command = new SlashCommandBuilder().
setContexts(
InteractionContextType.BotDM,
InteractionContextType.Guild,
InteractionContextType.PrivateChannel,
).
setIntegrationTypes(ApplicationIntegrationType.UserInstall).
setName("mood").
setDescription("Have Cordelia analyse the sentiment/mood of a text passage.").
addStringOption((option) => {
return option.
setName("text").
setDescription("The text you would like analysed").
setRequired(true).
setMaxLength(2000);
});
// eslint-disable-next-line no-console -- We don't need our logger here as this never runs in production.
console.log(JSON.stringify(command.toJSON()));