diff options
Diffstat (limited to 'src/plugins/uwuify.ts')
-rw-r--r-- | src/plugins/uwuify.ts | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/src/plugins/uwuify.ts b/src/plugins/uwuify.ts index 8c8d790..2cf0f76 100644 --- a/src/plugins/uwuify.ts +++ b/src/plugins/uwuify.ts @@ -1,32 +1,13 @@ import definePlugin from "../utils/types"; import { findOption, RequiredMessageOption } from "../api/Commands"; -// words have a chance of ending with these const endings = [ - "owo", - "UwU", - ">w<", - "^w^", - "āwā", - "āwā", - "šØššØ", - "(įįØį)", - "(ā°ĖvĖā°)", - "( Ā“ ā½ ` ).ļ½”ļ½ā”", - "*unbuttons shirt*", - ">3<", - ">:3", - ":3", - "murr~", - "ā„(ćU Ļ Uć)", - "(ĖĪµĖ)", - "*screams*", - "*twerks*", - "*sweats*", + "owo", "UwU", ">w<", "^w^", "āwā", "āwā", "šØššØ", "(įįØį)", "(ā°ĖvĖā°)", + "( Ā“ ā½ ` ).ļ½”ļ½ā”", "*unbuttons shirt*", ">3<", ">:3", ":3", "murr~", + "ā„(ćU Ļ Uć)", "(ĖĪµĖ)", "*screams*", "*twerks*", "*sweats*", ]; -// replacement words -const words = [ +const replacements = [ ["love", "wuv"], ["mr", "mistuh"], ["dog", "doggo"], @@ -45,7 +26,6 @@ const words = [ ]; -// uwuify command function uwuify(message: string): string { return message .split(" ") @@ -58,7 +38,7 @@ function uwuify(message: string): string { } // replacing the words based on the array on line 29 - for (let [find, replace] of words) { + for (let [find, replace] of replacements) { if (w.includes(find)) { w = w.replace(find, replace); owofied = true; @@ -111,7 +91,10 @@ function uwuify(message: string): string { export default definePlugin({ name: "UwUifier", description: "Simply uwuify commands", - authors: [{ name: "ECHO", id: 712639419785412668n }], + authors: [{ + name: "ECHO", + id: 712639419785412668n + }], dependencies: ["CommandsAPI"], commands: [ |