은승우

Update app.js

Showing 1 changed file with 3 additions and 2 deletions
......@@ -103,7 +103,7 @@ async function handleEvent(event) {
body: event.message.image
};
}).then(
}).then((options)=>{
request.post(options, function (error, response, body) {
var data=JSON.stringify(body);
var text='';
......@@ -139,7 +139,8 @@ async function handleEvent(event) {
}
client.replyMessage(event.replyToken,result).then(resolve).catch(reject);
});
}))
})
})
}
else if(event.type == 'message' && event.message.type == 'text')
{
......