here
This commit is contained in:
@@ -2,7 +2,6 @@ module.exports = {
|
||||
'help': {
|
||||
desc: `Print the allowed commands.`,
|
||||
async function(from){
|
||||
console.log('called help', from)
|
||||
let intro = [
|
||||
'I am a bot owned and operated by',
|
||||
'wmantly <wmantly@gmail.com>',
|
||||
@@ -70,10 +69,10 @@ module.exports = {
|
||||
allowed: ['wmantly', 'useless666', 'tux4242',],
|
||||
ignoreLock: true,
|
||||
async function(from, botName, action) {
|
||||
this.whisper(from, `Loading ${plugin}`);
|
||||
this.whisper(from, `Loading ${action}`);
|
||||
if(botName in this.constructor.bots){
|
||||
let bot = this.constructor.bots[botName];
|
||||
let status = await bot.pluginLoad(plugin);
|
||||
let status = await bot.pluginLoad(action);
|
||||
return this.whisper(from, `plugin status ${status}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user