modified: package.json

modified:   src/trigger/bot.js
This commit is contained in:
Flummi 2016-10-29 06:04:23 +02:00
parent d1c54a6682
commit 697fe17bc6
2 changed files with 10 additions and 4 deletions

View File

@ -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",

View File

@ -12,9 +12,14 @@ module.exports = (lib) => {
bot: lib.bot, bot: lib.bot,
e: e e: e
} }
try {
var output = safeEval(args, context); var output = safeEval(args, context);
if(typeof(output) != undefined && output !== 'undefined' && output) if(typeof(output) != undefined && output !== 'undefined' && output)
e.reply(output); e.reply(output);
}
catch(blah) {
e.reply('f0ck you!');
}
}, },
desc: 'bot debug' desc: 'bot debug'
}); });