Equicord/src/equicordplugins/cuteNekos/index.ts

31 lines
747 B
TypeScript
Raw Normal View History

2024-07-18 16:19:54 -04:00
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
async function getcuteneko(): Promise<string> {
2024-07-18 16:27:48 -04:00
const res = await fetch("https://nekos.best/api/v2/neko");
2024-07-18 16:19:54 -04:00
const url = (await res.json()).results[0].url as string;
return url;
}
export default definePlugin({
2024-07-18 17:48:50 -04:00
name: "CuteNekos",
2024-07-18 16:19:54 -04:00
authors: [Devs.echo],
description: "Neko Command",
dependencies: ["CommandsAPI"],
commands: [{
name: "nekos",
description: "Baby don't hurt me no more",
execute: async opts => ({
content: await getcuteneko()
})
}]
});