all repos — stealth-developers @ 433ff54f586cb201794a95cbd29d81ccdf4fabc5

apps/bot/src/feats/uwuify/lib.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
import Uwuifier from "uwuifier";

export function uwuify(input: string) {
	const uwuifier = new Uwuifier();
	const uwuifiedContent = input ? uwuifier.uwuifySentence(input) : "";

	const blacklistedWords = ["twerks", "sees bulge", "notices buldge", "starts twerking", "wank"];

	return blacklistedWords.reduce((acc, word) => {
		return acc.replace(new RegExp(word, "gi"), "mrrp");
	}, uwuifiedContent);
}