Skip to content

Commit

Permalink
More uwu
Browse files Browse the repository at this point in the history
  • Loading branch information
inventionpro committed Dec 21, 2024
1 parent f85f77f commit 46296e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apis/uwuify.js
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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;
}
Expand Down

0 comments on commit 46296e9

Please sign in to comment.