diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-12 22:22:37 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-12 22:22:37 +0200 |
commit | 8817e2dff71f4736f4f8c9011457d20e63ec4ca3 (patch) | |
tree | 27bcbbbd86210cfcaa518831ed7e456c2c769762 /src/plugins/uwuify.ts | |
parent | 267b2b1a0703313311da01addafcee28100347ea (diff) | |
download | Vencord-8817e2dff71f4736f4f8c9011457d20e63ec4ca3.tar.gz Vencord-8817e2dff71f4736f4f8c9011457d20e63ec4ca3.tar.bz2 Vencord-8817e2dff71f4736f4f8c9011457d20e63ec4ca3.zip |
Reorganise command plugins
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: [ |