modified: package.json
modified: src/trigger/bot.js
This commit is contained in:
parent
d1c54a6682
commit
697fe17bc6
|
@ -17,7 +17,8 @@
|
||||||
"request": "^2.74.0",
|
"request": "^2.74.0",
|
||||||
"swig": "^1.4.2",
|
"swig": "^1.4.2",
|
||||||
"uuid": "^2.0.2",
|
"uuid": "^2.0.2",
|
||||||
"ytdl-core": "^0.7.17"
|
"ytdl-core": "^0.7.17",
|
||||||
|
"safe-eval": "^0.3.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -12,9 +12,14 @@ module.exports = (lib) => {
|
||||||
bot: lib.bot,
|
bot: lib.bot,
|
||||||
e: e
|
e: e
|
||||||
}
|
}
|
||||||
var output = safeEval(args, context);
|
try {
|
||||||
if(typeof(output) != undefined && output !== 'undefined' && output)
|
var output = safeEval(args, context);
|
||||||
e.reply(output);
|
if(typeof(output) != undefined && output !== 'undefined' && output)
|
||||||
|
e.reply(output);
|
||||||
|
}
|
||||||
|
catch(blah) {
|
||||||
|
e.reply('f0ck you!');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
desc: 'bot debug'
|
desc: 'bot debug'
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user