|
|
@ -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 }; |