const ESMCommand = require("../esm_command"); module.exports = class ESMCommand_Snek extends ESMCommand { constructor(bot) { super(bot); this.information = { category: "fun", help: "Nope rope, danger noodle, whatever you want to call them. One thing for sure is that they are cute.", params: "" }; this.configuration = { allowedInTextChannels: { modifiable: true, default: true }, cooldown: { modifiable: false, default: [5, "seconds"] } }; } async fromDiscord() { let ret = await this.ESMBot.request.get("http://fur.im/snek/"); if (ret.ok) { let snek = JSON.parse(ret.text); this.ESMBot.send(this.message.channel, { files: [{ attachment: snek.file }] }); } } }