Equicord/src/equicordplugins/cutePats/index.ts

31 lines
753 B
TypeScript
Raw Normal View History

2024-07-18 18:14:06 -04:00
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { EquicordDevs } from "@utils/constants";
import definePlugin from "@utils/types";
async function getcutepats(): Promise<string> {
const res = await fetch("https://api.waifu.pics/sfw/pat");
const url = (await res.json()).url as string;
return url;
}
export default definePlugin({
name: "CutePats",
description: "Pat Command",
dependencies: ["CommandsAPI"],
authors: [EquicordDevs.thororen],
commands: [{
name: "pat",
description: "Baby don't hurt me no more",
execute: async opts => ({
content: await getcutepats()
})
}]
});