diff --git a/src/trigger/bot.js b/src/trigger/bot.js index bf9d614..29f4c2b 100644 --- a/src/trigger/bot.js +++ b/src/trigger/bot.js @@ -20,7 +20,7 @@ module.exports = (lib) => { vm.runInNewContext('this.output = '+args, sandbox); var output = util.inspect(sandbox.output); - if(output !== undefined) + if(typeof(output) !== undefined) e.reply(output); }, desc: 'bot debug'