mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 15:53:08 +02:00
stdin help
This commit is contained in:
parent
507e963efc
commit
fbc2b8c6b9
@ -16,6 +16,11 @@ module.exports = class Commands extends StdinCommand {
|
||||
.catch(this.client.log.error);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
this.client.log.info('subcommands: \n' + [
|
||||
'> commands publish',
|
||||
].join('\n'));
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
17
src/stdin/help.js
Normal file
17
src/stdin/help.js
Normal file
@ -0,0 +1,17 @@
|
||||
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'));
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user