Add exit stdin command

This commit is contained in:
Isaac 2022-09-04 21:08:36 +01:00
parent 84505c2a5f
commit bae6af96f7
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

15
src/stdin/exit.js Normal file
View File

@ -0,0 +1,15 @@
const { StdinCommand } = require('@eartharoid/dbf');
module.exports = class extends StdinCommand {
constructor(client, options) {
super(client, {
...options,
id: 'exit',
});
}
async run() {
this.client.log.info('Exiting');
process.exit();
}
};