This commit is contained in:
Cedric Hoelzl 2019-09-20 13:58:00 +02:00
parent f8641252b2
commit c1d4f4077d

View File

@ -50,6 +50,7 @@ module.exports = function(url, cmds){
return reject(500);//response.statusCode); return reject(500);//response.statusCode);
} }
console.log(body) console.log(body)
console.log(body.reply)
event.reply(body.reply).catch(err=>bot.error(err)); event.reply(body.reply).catch(err=>bot.error(err));
return resolve(200); return resolve(200);
@ -69,7 +70,6 @@ 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.query.args)
rep.type('application/json').code(200).send({reply: req.query.args }); rep.type('application/json').code(200).send({reply: req.query.args });
}, },