diff --git a/src/equicordplugins/freaky/index.tsx b/src/equicordplugins/freaky/index.tsx index 47b2f1aed..fe9a08c3d 100644 --- a/src/equicordplugins/freaky/index.tsx +++ b/src/equicordplugins/freaky/index.tsx @@ -5,9 +5,10 @@ */ import { ApplicationCommandInputType, ApplicationCommandOptionType, findOption } from "@api/Commands"; +import { definePluginSettings } from "@api/Settings"; import { EquicordDevs } from "@utils/constants"; import { sendMessage } from "@utils/discord"; -import definePlugin from "@utils/types"; +import definePlugin, { OptionType } from "@utils/types"; const charMap: Record = { q: "𝓺", w: "𝔀", e: "𝓮", r: "𝓻", t: "𝓽", y: "𝔂", u: "𝓾", i: "𝓲", o: "𝓸", p: "𝓹", @@ -23,14 +24,23 @@ const mapCharacters = (text: string, map: Record) => function makeFreaky(text: string) { text = mapCharacters(text.trim() || "freaky", charMap); - text += Math.random() < 0.25 ? " 👅" : " ❤️"; + if (settings.store.addFreakyEnding) text += Math.random() < 0.25 ? " 👅" : " ❤️"; return text; } +const settings = definePluginSettings({ + addFreakyEnding: { + type: OptionType.BOOLEAN, + description: "Add 👅 or ❤️ at the end", + default: true + } +}); + export default definePlugin({ name: "Freaky", description: "freaky.", authors: [EquicordDevs.nyx], + settings, commands: [ { name: "freaky",