Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
은승우
2019-12-05 17:52:10 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c0b52b454700b1b8063cd9737ddd4c8c3ed45d0b
c0b52b45
1 parent
f7677bae
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
app.js
app.js
View file @
c0b52b4
...
...
@@ -83,15 +83,14 @@ async function handleEvent(event) {
else
if
(
event
.
type
==
'message'
&&
event
.
message
.
type
==
'image'
)
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
var
file
;
while
(
file
!=
undefined
)
{
client
.
getMessageContent
(
event
.
message
.
id
)
.
then
((
stream
)
=>
{
stream
.
on
(
'data'
,
(
chunk
)
=>
{
.
then
(
async
(
stream
)
=>
{
await
stream
.
on
(
'data'
,
(
chunk
)
=>
{
file
=
chunk
;
});
});
}
var
cheerio
=
require
(
'cheerio'
);
var
uriBase
=
'https://koreacentral.api.cognitive.microsoft.com/vision/v2.1/ocr'
;
var
options
=
{
...
...
Please
register
or
login
to post a comment