mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
Add exit stdin command
This commit is contained in:
parent
84505c2a5f
commit
bae6af96f7
15
src/stdin/exit.js
Normal file
15
src/stdin/exit.js
Normal 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();
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user