mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-13 08:33:01 -04:00
Commands In Plugin Json
This commit is contained in:
parent
df4d56aacf
commit
6bd3b06de5
4 changed files with 42 additions and 7 deletions
|
@ -18,10 +18,10 @@ async function getcuteneko(): Promise<string> {
|
|||
export default definePlugin({
|
||||
name: "CuteNekos",
|
||||
authors: [Devs.echo],
|
||||
description: "Neko Command",
|
||||
description: "Send Nekos to others",
|
||||
commands: [{
|
||||
name: "nekos",
|
||||
description: "Baby don't hurt me no more",
|
||||
description: "Send Neko",
|
||||
execute: async opts => ({
|
||||
content: await getcuteneko()
|
||||
})
|
||||
|
|
|
@ -8,7 +8,6 @@ import { EquicordDevs } from "@utils/constants";
|
|||
import definePlugin from "@utils/types";
|
||||
|
||||
async function getcutepats(): Promise<string> {
|
||||
// Indi wants bad things
|
||||
const res = await fetch("https://api.waifu.pics/sfw/pat");
|
||||
const url = (await res.json()).url as string;
|
||||
return url;
|
||||
|
@ -19,10 +18,10 @@ async function getcutepats(): Promise<string> {
|
|||
export default definePlugin({
|
||||
name: "CutePats",
|
||||
authors: [EquicordDevs.thororen],
|
||||
description: "Pat Command",
|
||||
description: "Sending Head Pats",
|
||||
commands: [{
|
||||
name: "pat",
|
||||
description: "Baby don't hurt me no more",
|
||||
description: "Sends a headpat gif",
|
||||
execute: async opts => ({
|
||||
content: await getcutepats()
|
||||
})
|
||||
|
|
|
@ -44,7 +44,7 @@ export default definePlugin({
|
|||
commands: [
|
||||
{
|
||||
name: "gifroulette",
|
||||
description: "Time to tempt your fate",
|
||||
description: "Tempt fate and send a gif",
|
||||
execute: (opts, other) => ({
|
||||
content: getMessage(opts, other)
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue