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 11:45:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
04b2d4a4c04549b6ca635c413b93da7b878b2bd7
04b2d4a4
1 parent
a90aa087
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
app.js
app.js
View file @
04b2d4a
...
...
@@ -82,8 +82,13 @@ function handleEvent(event) {
}
else
if
(
event
.
type
==
'message'
&&
event
.
message
.
type
==
'image'
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
console
.
log
(
event
.
message
.
originContentUrl
);
client
.
replyMessage
(
event
.
replyToken
,
event
.
message
).
then
(
resolve
).
catch
(
reject
);
request
.
post
(
options
,
function
(
error
,
response
,
body
){
// Translate API Sucess
if
(
!
error
&&
response
.
statusCode
==
200
){
client
.
replyMessage
(
event
.
replyToken
,
event
.
message
.
originalContentUrl
).
then
(
resolve
).
catch
(
reject
);
}
});
/*console.log("!");
var cheerio = require('cheerio');
...
...
Please
register
or
login
to post a comment