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-29 22:41:57 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0de05ff41d313f1157f7629117d10bb2eb8fdea2
0de05ff4
1 parent
3f4a0ba2
제발15
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
app.js
app.js
View file @
0de05ff
...
...
@@ -48,13 +48,44 @@ app.post('/hook', function (req, res) {
var
cmd
=
eventObj
.
message
.
text
;
if
(
cmd
==
"영어"
){
app
.
post
(
'/hook'
,
function
(
req
,
res
)
{
var
eventObj
=
req
.
body
.
events
[
0
];
var
source
=
eventObj
.
source
;
var
message
=
eventObj
.
message
;
transen
(
eventObj
.
replyToken
,
eventObj
.
message
.
text
);
res
.
sendStatus
(
200
);
});
}
else
if
(
cmd
==
"프랑스어"
){
app
.
post
(
'/hook'
,
function
(
req
,
res
)
{
var
eventObj
=
req
.
body
.
events
[
0
];
var
source
=
eventObj
.
source
;
var
message
=
eventObj
.
message
;
transfr
(
eventObj
.
replyToken
,
eventObj
.
message
.
text
);
res
.
sendStatus
(
200
);
});
}
else
if
(
cmd
==
"일본어"
){
app
.
post
(
'/hook'
,
function
(
req
,
res
)
{
var
eventObj
=
req
.
body
.
events
[
0
];
var
source
=
eventObj
.
source
;
var
message
=
eventObj
.
message
;
transja
(
eventObj
.
replyToken
,
eventObj
.
message
.
text
);
res
.
sendStatus
(
200
);
});
}
res
.
sendStatus
(
200
);
...
...
Please
register
or
login
to post a comment