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