mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-26 10:08:52 -05:00
30 lines
747 B
TypeScript
30 lines
747 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: "Neko Command",
|
|
dependencies: ["CommandsAPI"],
|
|
commands: [{
|
|
name: "nekos",
|
|
description: "Baby don't hurt me no more",
|
|
execute: async opts => ({
|
|
content: await getcuteneko()
|
|
})
|
|
}]
|
|
});
|