Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대욱
/
trans
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
김대욱
2020-11-27 20:10:08 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b83b4448286a8936c9a5d72e8134290e4018be9f
b83b4448
1 parent
3d1ddd7e
wish2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
app.js
app.js
View file @
b83b444
...
...
@@ -25,15 +25,16 @@ app.post('/hook', function (req, res) {
console
.
log
(
'[request source] '
,
eventObj
.
source
);
console
.
log
(
'[request message]'
,
eventObj
.
message
);
const
question
=
req
.
body
.
userRequest
.
utterance
;
var
cmd
=
message
.
text
;
console
.
log
(
'[command]'
,
cmd
);
if
(
question
==
"영어"
){
if
(
cmd
==
"영어"
){
transen
(
eventObj
.
replyToken
,
eventObj
.
message
.
text
);
}
else
if
(
question
==
"프랑스어"
){
else
if
(
cmd
==
"프랑스어"
){
transfr
(
eventObj
.
replyToken
,
eventObj
.
message
.
text
);
}
else
if
(
question
==
"일본어"
){
else
if
(
cmd
==
"일본어"
){
transja
(
eventObj
.
replyToken
,
eventObj
.
message
.
text
);
}
...
...
Please
register
or
login
to post a comment