diff --git a/commands/fun/uwu.js b/commands/fun/uwu.js new file mode 100644 index 0000000..03ae225 --- /dev/null +++ b/commands/fun/uwu.js @@ -0,0 +1,21 @@ +const { SlashCommandBuilder } = require("discord.js"); +const owoify = require("owoify-js").default; + +module.exports = { + data: new SlashCommandBuilder() + .setName("uwu") + .setDescription("Uwufy your message!") + .addStringOption((option) => + option + .setName("text") + .setDescription("The text to uwufy") + .setRequired(true) + ), + async execute(interaction) { + const inputText = interaction.options.getString("text"); + + const uwufiedText = owoify(inputText, "uwu"); + + await interaction.reply(uwufiedText); + }, +}; diff --git a/package.json b/package.json index 8a298e4..1a23e9f 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "express": "^4.19.2", "html-entities": "^2.5.2", "mongoose": "^8.6.0", - "nodemailer": "^6.9.14" + "nodemailer": "^6.9.14", + "owoify-js": "^2.0.0" } }