From 46296e99bced11f406d22dc119195a794e66916a Mon Sep 17 00:00:00 2001 From: inventionpro <109528211+inventionpro@users.noreply.github.com> Date: Sat, 21 Dec 2024 16:41:50 +0100 Subject: [PATCH] More uwu --- apis/uwuify.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apis/uwuify.js b/apis/uwuify.js index 86acc06..2c3d70c 100644 --- a/apis/uwuify.js +++ b/apis/uwuify.js @@ -1,6 +1,7 @@ +const ends = [" >:3", " ;u;", " :>", " x3", " >///<", " >~<", " ^^", " OwO", " uwu", " >.<", " :3", "~ ", "~~ "]; function uwuify(text) { text = text - .replace('per','paw') + .replace('per','paw'); text = text .replace(/r/g, "w") .replace(/l/g, "w") @@ -11,7 +12,7 @@ function uwuify(text) { .replace(/th/g, "d") .replace(/TH/g, "D") .replace(/ove/g, "uv") - .replace(/(?:\.|!|\?)/g, function(match){return`${[" ;w;", " ;u;", " owo", " uwu", " >.<", " :3", "~ ", "~~ "][Math.floor(Math.random()*8)]}${match}`}); + .replace(/(?:\.|!|\?)/g, function(match){return`${ends[Math.floor(Math.random()*ends.length)]}${match}`}); return text; }