TravBot-v3/src/commands/fun/owoify.ts

13 lines
428 B
TypeScript
Raw Normal View History

2020-12-15 01:44:28 +00:00
/// @ts-nocheck
import Command from "../../core/command";
import {CommonLibrary, getContent} from "../../core/lib";
export default new Command({
description: "OwO-ifies the input.",
async run($: CommonLibrary): Promise<any> {
2020-12-15 07:56:09 +00:00
let url = new URL(`https://nekos.life/api/v2/owoify?text=${$.args.join(" ")}`);
2020-12-15 01:44:28 +00:00
const content = await getContent(url.toString());
$.channel.send(content.owo);
}
});