modified: package.json
modified: src/trigger/bot.js
This commit is contained in:
@ -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'
|
||||
});
|
||||
|
Reference in New Issue
Block a user