const ESMCommand = require("../esm_command"); module.exports = class ESMCommand_Meow extends ESMCommand { constructor(bot) { super(bot); this.information = { category: "fun", help: "IT'S SO FLUFFY, I'M GOING TO DIE", params: "" }; this.configuration = { allowedInTextChannels: { modifiable: true, default: true }, cooldown: { modifiable: false, default: [5, "seconds"] } }; } async fromDiscord() { let ret = await this.ESMBot.request.get("https://api.thecatapi.com/v1/images/search?size=full&mime_types=jpg&format=json&order=RANDOM&page=0&limit=1"); if (ret.ok) { let meow = JSON.parse(ret.text)[0].url; this.ESMBot.send(this.message.channel, { files: [{ attachment: meow }] }); } } }