DiscordTickets/src/stdin/help.js
2022-10-06 14:39:37 +01:00

17 lines
485 B
JavaScript

const { StdinCommand } = require('@eartharoid/dbf');
const { homepage } = require('../../package.json');
module.exports = class extends StdinCommand {
constructor(client, options) {
super(client, {
...options,
id: 'help',
});
}
async run() {
this.client.log.info('Documentation:', homepage);
this.client.log.info('Support: https://lnk.earth/discord');
this.client.log.info('stdin commands:\n' + this.client.stdin.components.map(c => `> ${c.id}`).join('\n'));
}
};