mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-23 16:49:24 -05:00
31 lines
753 B
TypeScript
31 lines
753 B
TypeScript
|
/*
|
||
|
* 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()
|
||
|
})
|
||
|
}]
|
||
|
});
|