aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/uwuify.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-20 11:58:20 +0200
committerVendicated <vendicated@riseup.net>2022-10-20 11:58:20 +0200
commit36f4478a4f10cb1e8f7b33ebb5d097dd028b9399 (patch)
treeb6c9268cf4c25017e8244065e0ffd1416a809044 /src/plugins/uwuify.ts
parent350e7b0a6a2f19728a1839dc7db85717af3399d8 (diff)
downloadVencord-36f4478a4f10cb1e8f7b33ebb5d097dd028b9399.tar.gz
Vencord-36f4478a4f10cb1e8f7b33ebb5d097dd028b9399.tar.bz2
Vencord-36f4478a4f10cb1e8f7b33ebb5d097dd028b9399.zip
more eslint
Diffstat (limited to 'src/plugins/uwuify.ts')
-rw-r--r--src/plugins/uwuify.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/uwuify.ts b/src/plugins/uwuify.ts
index 2cf0f76..5135c5a 100644
--- a/src/plugins/uwuify.ts
+++ b/src/plugins/uwuify.ts
@@ -31,14 +31,14 @@ function uwuify(message: string): string {
.split(" ")
.map(w => {
let owofied = false;
- let lowerCase = w.toLowerCase();
+ const lowerCase = w.toLowerCase();
// return if the word is too short - uwuifying short words makes them unreadable
if (w.length < 4) {
return w;
}
// replacing the words based on the array on line 29
- for (let [find, replace] of replacements) {
+ for (const [find, replace] of replacements) {
if (w.includes(find)) {
w = w.replace(find, replace);
owofied = true;