aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/uwuify.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-12 22:22:37 +0200
committerVendicated <vendicated@riseup.net>2022-10-12 22:22:37 +0200
commit8817e2dff71f4736f4f8c9011457d20e63ec4ca3 (patch)
tree27bcbbbd86210cfcaa518831ed7e456c2c769762 /src/plugins/uwuify.ts
parent267b2b1a0703313311da01addafcee28100347ea (diff)
downloadVencord-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.ts35
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: [