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-02 15:11:22 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c804b492c0b9137143af9cc01529a6ce972fe867
c804b492
1 parent
e6cb1065
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 @
c804b49
...
...
@@ -61,7 +61,7 @@ console.log(res.statusCode);
.
all
(
req
.
body
.
events
.
map
(
handleEvent
))
.
then
((
result
)
=>
res
.
json
(
result
))
.
catch
((
err
)
=>
{
console
.
log
(
err
);
console
.
log
(
err
.
response
)
console
.
log
(
err
.
originalError
.
response
)
})
});
// event handler
...
...
@@ -112,7 +112,7 @@ function handleEvent(event) {
// Message 잘 찍히는지 확인
result
.
text
=
objBody
.
message
.
result
.
translatedText
;
console
.
log
(
result
.
text
);
console
.
log
(
result
);
//번역된 문장 보내기
client
.
replyMessage
(
event
.
replyToken
,
result
).
then
(
resolve
).
catch
(
reject
);
}
...
...
Please
register
or
login
to post a comment