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 12:07:28 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5fed0960812326bff9a0cfe800a68df2bd658248
5fed0960
1 parent
ada6edd3
Update app.js
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app.js
app.js
View file @
5fed096
...
...
@@ -81,7 +81,7 @@ function handleEvent(event) {
return
Promise
.
resolve
(
null
);
}
else
if
(
event
.
type
==
'message'
&&
event
.
message
.
type
==
'image'
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
console
.
log
(
"!"
);
var
cheerio
=
require
(
'cheerio'
);
...
...
@@ -102,7 +102,7 @@ function handleEvent(event) {
},
body
:
event
.
message
.
image
};
request
.
post
(
options
,
function
(
error
,
response
,
body
)
{
await
request
.
post
(
options
,
function
(
error
,
response
,
body
)
{
var
data
=
JSON
.
stringify
(
body
);
var
text
=
''
;
console
.
log
(
data
);
...
...
Please
register
or
login
to post a comment