From deb7ad2c6ff44bfd96330cf9d0bd21d6b89d6e26 Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Fri, 20 Sep 2019 13:21:10 +0200 Subject: [PATCH] fix --- config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config.js b/config.js index dc89793..7551948 100644 --- a/config.js +++ b/config.js @@ -30,7 +30,7 @@ module.exports = function(url, cmds){ let options = { url: this.url, - form:message, + body:message, }; return new Promise((resolve,reject)=>{ return request.get(options, function (err, response, body) { @@ -43,7 +43,6 @@ module.exports = function(url, cmds){ //bot.error(response.statusCode); return reject(500);//response.statusCode); } - event.reply(body.reply).catch(err=>bot.error(err)); return resolve(200); @@ -63,8 +62,8 @@ module.exports = function(url, cmds){ post_action : (bot,req,rep)=>{ }, get_action : (bot,req,rep)=>{ - console.log(req); - rep.send({msg: "Beep Boop"}); + console.log(req.body); + rep.send({reply: "Beep Boop"}); //rep.send({msg:req.from.id}); },