은승우

Update app.js

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