Equicord/src/equicordplugins/cuteNekos/index.ts
2024-10-31 04:34:18 -04:00

29 lines
703 B
TypeScript

/*
* 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> {
const res = await fetch("https://nekos.best/api/v2/neko");
const url = (await res.json()).results[0].url as string;
return url;
}
export default definePlugin({
name: "CuteNekos",
authors: [Devs.echo],
description: "Send Nekos to others",
commands: [{
name: "nekos",
description: "Send Neko",
execute: async opts => ({
content: await getcuteneko()
})
}]
});