From f055170e8ec862ee98b2254fec635b09159d20dd Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Fri, 20 Sep 2019 13:53:51 +0200 Subject: [PATCH] fix --- config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.js b/config.js index b1b5c54..5f23231 100644 --- a/config.js +++ b/config.js @@ -49,6 +49,7 @@ module.exports = function(url, cmds){ //bot.error(response.statusCode); return reject(500);//response.statusCode); } + console.log(body) event.reply(body.reply).catch(err=>bot.error(err)); return resolve(200); @@ -68,6 +69,7 @@ module.exports = function(url, cmds){ post_action : (bot,req,rep)=>{ }, get_action : (bot,req,rep)=>{ + console.log(req.body.args) rep.type('application/json').code(200) return { reply: req.query.args } },