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