DiscordTickets/src/stdin/help.js

17 lines
485 B
JavaScript
Raw Normal View History

2022-10-06 16:39:37 +03:00
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'));
}
};