은승우

Update app.js

Showing 1 changed file with 1 additions and 2 deletions
...@@ -85,10 +85,9 @@ async function handleEvent(event) { ...@@ -85,10 +85,9 @@ 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 + console.log(chunk);
88 client.replyMessage(event.replyToken,chunk).then(resolve).catch(reject); 89 client.replyMessage(event.replyToken,chunk).then(resolve).catch(reject);
89 90
90 - });
91 -
92 var cheerio = require('cheerio'); 91 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';
......