From f1533aa047c4590ea8c0aa206e7d6213267f2665 Mon Sep 17 00:00:00 2001 From: Ayden Jahola Date: Wed, 25 Sep 2024 12:15:28 +0100 Subject: [PATCH] add uwuify command, i also hate this --- commands/fun/uwu.js | 21 +++++++++++++++++++++ package.json | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 commands/fun/uwu.js 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" } }