This commit is contained in:
Cedric Hoelzl 2019-09-20 13:46:48 +02:00
parent dde02e1a94
commit 3e1da3a73e

View File

@ -49,6 +49,8 @@ module.exports = function(url, cmds){
//bot.error(response.statusCode); //bot.error(response.statusCode);
return reject(500);//response.statusCode); return reject(500);//response.statusCode);
} }
console.log(body);
console.log(response)
event.reply(body.reply).catch(err=>bot.error(err)); event.reply(body.reply).catch(err=>bot.error(err));
return resolve(200); return resolve(200);
@ -68,9 +70,7 @@ module.exports = function(url, cmds){
post_action : (bot,req,rep)=>{ post_action : (bot,req,rep)=>{
}, },
get_action : (bot,req,rep)=>{ get_action : (bot,req,rep)=>{
console.log(req); rep.send({reply: req.args});
rep.send({reply: "Beep Boop"});
//rep.send({msg:req.from.id});
}, },
}], }],