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:49:28 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6dea8fba2e96f8b0bede1af594b7a005e50a50e0
6dea8fba
1 parent
ee7f8644
end
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
app.js
app.js
View file @
6dea8fb
...
...
@@ -29,13 +29,16 @@ app.post('/hook', function (req, res) {
var
cmd
=
message
.
text
;
if
(
cmd
==
"영어"
){
transen
(
eventObj
.
replyToken
,
eventObj
.
message
.
text
);
var
input
=
message
.
text
;
transen
(
eventObj
.
replyToken
,
input
);
}
else
if
(
cmd
==
"프랑스어"
){
transfr
(
eventObj
.
replyToken
,
eventObj
.
message
.
text
);
var
input
=
message
.
text
;
transfr
(
eventObj
.
replyToken
,
input
);
}
else
if
(
cmd
==
"일본어"
){
transja
(
eventObj
.
replyToken
,
eventObj
.
message
.
text
);
var
input
=
message
.
text
;
transja
(
eventObj
.
replyToken
,
input
);
}
res
.
sendStatus
(
200
);
...
...
Please
register
or
login
to post a comment