mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
feat: version
stdin command (closes #402)
This commit is contained in:
parent
f8450af34e
commit
1992ff641c
17
src/stdin/version.js
Normal file
17
src/stdin/version.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
const { StdinCommand } = require('@eartharoid/dbf');
|
||||||
|
const { version } = require('../../package.json');
|
||||||
|
const checkForUpdates = require('../lib/updates');
|
||||||
|
|
||||||
|
module.exports = class extends StdinCommand {
|
||||||
|
constructor(client, options) {
|
||||||
|
super(client, {
|
||||||
|
...options,
|
||||||
|
id: 'version',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async run() {
|
||||||
|
this.client.log.info('Current version:', version);
|
||||||
|
checkForUpdates(this.client);
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user