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",
|
||||
"swig": "^1.4.2",
|
||||
"uuid": "^2.0.2",
|
||||
"ytdl-core": "^0.7.17"
|
||||
"ytdl-core": "^0.7.17",
|
||||
"safe-eval": "^0.3.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -12,9 +12,14 @@ module.exports = (lib) => {
|
||||
bot: lib.bot,
|
||||
e: e
|
||||
}
|
||||
var output = safeEval(args, context);
|
||||
if(typeof(output) != undefined && output !== 'undefined' && output)
|
||||
e.reply(output);
|
||||
try {
|
||||
var output = safeEval(args, context);
|
||||
if(typeof(output) != undefined && output !== 'undefined' && output)
|
||||
e.reply(output);
|
||||
}
|
||||
catch(blah) {
|
||||
e.reply('f0ck you!');
|
||||
}
|
||||
},
|
||||
desc: 'bot debug'
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user