diff --git a/src/commands/fun/owoify.ts b/src/commands/fun/owoify.ts index 5819f09..1d4882c 100644 --- a/src/commands/fun/owoify.ts +++ b/src/commands/fun/owoify.ts @@ -1,15 +1,21 @@ import {NamedCommand, RestCommand} from "onion-lasers"; -import {getContent} from "../../lib"; -import {URL} from "url"; +import {random} from "../../lib"; export default new NamedCommand({ description: "OwO-ifies the input.", run: "You need to specify some text to owoify.", any: new RestCommand({ async run({send, combined}) { - let url = new URL(`https://nekos.life/api/v2/owoify?text=${combined}`); - const content = (await getContent(url.toString())) as any; // Apparently, the object in question is {owo: string}. - send(content.owo); + // Copied from . + const faces = ["owo", "UwU", ">w<", "^w^"]; + const owoified = combined + .replace(/[rl]/g, "w") + .replace(/[RL]/g, "W") + .replace(/ove/g, "uv") + .replace(/n/g, "ny") + .replace(/N/g, "NY") + .replace(/\!/g, ` ${random(faces)} `); + send(owoified); } }) });