add uwuify command, i also hate this

This commit is contained in:
Ayden Jahola 2024-09-25 12:15:28 +01:00
parent 5a7fa169d7
commit f1533aa047
No known key found for this signature in database
GPG key ID: 71DD90AE4AE92742
2 changed files with 23 additions and 1 deletions

21
commands/fun/uwu.js Normal file
View file

@ -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);
},
};

View file

@ -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"
}
}