Friday, September 20, 2024 1:28:42 AM
> settings

Customize


Authenticate

> snek.js
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
                }]
            });
        }
    }
}
All opinions represented herein are my own
- © 2024 itsthedevman
- build 340fbb8