Browse Source

Adding version command to the admin module

develop
Drew Short 5 years ago
parent
commit
12074a8179
  1. 11
      src/module/admin.ts

11
src/module/admin.ts

@ -6,6 +6,7 @@ let { AbstractModule } = require('./abstract');
let { logger } = require('../logging');
let { sanitizeConfig } = require('../config');
let message = require('../message');
import { getBuildInfo } from '../utility';
class AdminModule extends AbstractModule {
constructor() {
@ -49,6 +50,16 @@ class AdminModule extends AbstractModule {
}
return null;
}
/**
* Return the verion of the running bot
*
* @param event
* @param args
*/
cmd_version(event: any, ...args: Array<string>) {
return getBuildInfo();
}
}
export { AdminModule as Module };
Loading…
Cancel
Save