은승우

Update app.js

Showing 1 changed file with 3 additions and 4 deletions
......@@ -85,11 +85,10 @@ async function handleEvent(event) {
client.getMessageContent(event.message.id)
.then((stream) => {
stream.on('data', (chunk) => {
client.replyMessage(event.replyToken,chunk).then(resolve).catch(reject);
console.log(chunk);
client.replyMessage(event.replyToken,chunk).then(resolve).catch(reject);
});
var cheerio = require('cheerio');
var cheerio = require('cheerio');
var uriBase = 'https://koreacentral.api.cognitive.microsoft.com/vision/v2.1/ocr';
var options = {
......