From 3e1da3a73ea6cbec562c72584185c6335994bafe Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Fri, 20 Sep 2019 13:46:48 +0200 Subject: [PATCH] fix --- config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index 5bb8251..e0324cd 100644 --- a/config.js +++ b/config.js @@ -49,6 +49,8 @@ module.exports = function(url, cmds){ //bot.error(response.statusCode); return reject(500);//response.statusCode); } + console.log(body); + console.log(response) event.reply(body.reply).catch(err=>bot.error(err)); return resolve(200); @@ -68,9 +70,7 @@ module.exports = function(url, cmds){ post_action : (bot,req,rep)=>{ }, get_action : (bot,req,rep)=>{ - console.log(req); - rep.send({reply: "Beep Boop"}); - //rep.send({msg:req.from.id}); + rep.send({reply: req.args}); }, }],