은승우

Update app.js

Showing 1 changed file with 2 additions and 7 deletions
......@@ -85,9 +85,8 @@ async function handleEvent(event) {
client.getMessageContent(event.message.id)
.then((stream) => {
stream.on('data', (chunk) => {
console.log(chunk);
client.replyMessage(event.replyToken,chunk).then(resolve).catch(reject);
/*
var cheerio = require('cheerio');
var uriBase = 'https://koreacentral.api.cognitive.microsoft.com/vision/v2.1/ocr';
......@@ -138,13 +137,9 @@ async function handleEvent(event) {
}
client.replyMessage(event.replyToken,result).then(resolve).catch(reject);
});
});*/
});
});
stream.on('error', (err) => {
// error handling
});
});
})
}
else if(event.type == 'message' && event.message.type == 'text')
......