This commit is contained in:
Cedric Hoelzl 2019-09-20 14:27:03 +02:00
parent 28258c600c
commit 1e16650ffe

View File

@ -49,9 +49,10 @@ module.exports = function(url, cmds){
//bot.error(response.statusCode);
return reject(500);//response.statusCode);
}
console.log(body)
console.log(body["reply"])
event.reply(body["reply"]).catch(err=>bot.error(err));
var resp = JSON.parse(body)
if(resp.reply==undefined || resp.reply=='')
resp.reply = "BeepBoop";
event.reply(resp.reply).catch(err=>bot.error(err));
return resolve(200);
});