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 { logger } = require('../logging');
let { sanitizeConfig } = require('../config'); let { sanitizeConfig } = require('../config');
let message = require('../message'); let message = require('../message');
import { getBuildInfo } from '../utility';
class AdminModule extends AbstractModule { class AdminModule extends AbstractModule {
constructor() { constructor() {
@ -49,6 +50,16 @@ class AdminModule extends AbstractModule {
} }
return null; 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 }; export { AdminModule as Module };
Loading…
Cancel
Save