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); //bot.error(response.statusCode);
return reject(500);//response.statusCode); return reject(500);//response.statusCode);
} }
console.log(body) var resp = JSON.parse(body)
console.log(body["reply"]) if(resp.reply==undefined || resp.reply=='')
event.reply(body["reply"]).catch(err=>bot.error(err)); resp.reply = "BeepBoop";
event.reply(resp.reply).catch(err=>bot.error(err));
return resolve(200); return resolve(200);
}); });