fix
This commit is contained in:
parent
28258c600c
commit
1e16650ffe
@ -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);
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user