Friday, September 20, 2024 2:59:06 AM
> settings

Customize


Authenticate

> steamuid.js
const ESMCommand = require("../esm_command");
module.exports = class ESMCommand_SteamUID extends ESMCommand {
    constructor(bot) {
        super(bot);
        this.permissions = {
            requires_registration: true
        };

        this.information = {
            category: "system",
            params: "",
            help: "Displays your steamUID if you are registered with ESM"
        };

        this.configuration = {
            allowedInTextChannels: {
                modifiable: true,
                default: false
            }
        };
    }

    async fromDiscord() {
        if (this.params.steamUID == null) {
            Logger.error(`Unable to find steam UID even though they were registered. ID: ${this.message.author.id}`);
            throw false;
        }
        this.ESMBot.send(this.message.channel, `${this.message.author.toString()}, your steamUID is: \`${this.params.steamUID}\``);
    }
}
All opinions represented herein are my own
- © 2024 itsthedevman
- build 340fbb8