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:15:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a7a9df72a2924f9749fe802e213d0b7fc50e85e8
a7a9df72
1 parent
c804b492
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app.js
app.js
View file @
a7a9df7
...
...
@@ -114,14 +114,14 @@ function handleEvent(event) {
result
.
text
=
objBody
.
message
.
result
.
translatedText
;
console
.
log
(
result
);
//번역된 문장 보내기
client
.
replyMessage
(
event
.
replyToken
,
result
).
then
(
resolve
)
.
catch
(
reject
)
;
client
.
replyMessage
(
event
.
replyToken
,
result
).
then
(
resolve
);
}
});
}
// 메시지의 언어가 영어 또는 한국어가 아닐 경우
else
{
result
.
text
=
'언어를 감지할 수 없습니다. \n 번역 언어는 한글 또는 영어만 가능합니다.'
;
client
.
replyMessage
(
event
.
replyToken
,
result
).
then
(
resolve
)
.
catch
(
reject
)
;
client
.
replyMessage
(
event
.
replyToken
,
result
).
then
(
resolve
);
}
}
...
...
Please
register
or
login
to post a comment