mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-09-29 22:45:58 +03:00
24 lines
494 B
JavaScript
24 lines
494 B
JavaScript
const { StdinCommand } = require('@eartharoid/dbf');
|
|
|
|
module.exports = class Commands extends StdinCommand {
|
|
constructor(client, options) {
|
|
super(client, {
|
|
...options,
|
|
id: 'commands',
|
|
});
|
|
}
|
|
|
|
async run(args) {
|
|
switch (args[0]) {
|
|
case 'publish': {
|
|
this.client.commands.publish()
|
|
.then(commands => {
|
|
if (!commands) return console.log('None published');
|
|
console.log('Published %d commands', commands.size);
|
|
})
|
|
.catch(console.error);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}; |