import config from "@/config"; import { text } from "@/utils/components"; import { tsExact, tsRelative } from "@/utils/profile"; import { type ChatInputCommandInteraction, type Client, ContainerBuilder, SlashCommandBuilder, } from "discord.js"; import Uwuifier from "uwuifier"; const commandData = new SlashCommandBuilder() .setName("uwuify") .setDescription(`ok`) .addStringOption((option) => option .setName("text") .setDescription("The text to uwuify") .setRequired(true), ); async function execute( _client: Client, interaction: ChatInputCommandInteraction, ) { const uwuifier = new Uwuifier(); const text = interaction.options.getString("text", true); const uwuifiedText = uwuifier.uwuifySentence(text); const blacklistedWords = [ "twerks", "sees bulge", "notices buldge", "starts twerking", ]; const finalText = blacklistedWords.reduce((acc, word) => { return acc.replace(new RegExp(word, "gi"), "----"); }, uwuifiedText); await interaction.reply({ content: finalText, allowedMentions: { users: [interaction.user.id] }, }); } export default { data: commandData, execute, };