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:39:32 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3f4a0ba2ef1ada86c50bd88a65fe47a43d6fa638
3f4a0ba2
1 parent
9b50d74d
제발14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
app.js
app.js
View file @
3f4a0ba
...
...
@@ -13,7 +13,7 @@ const sslport = 23023;
const
bodyParser
=
require
(
'body-parser'
);
var
app
=
express
();
app
.
use
(
bodyParser
.
json
());
/*
var cmd = "";
app.post('/hook', function (req, res) {
...
...
@@ -31,6 +31,7 @@ app.post('/hook', function (req, res) {
res.sendStatus(200);
});
*/
app
.
post
(
'/hook'
,
function
(
req
,
res
)
{
...
...
@@ -44,6 +45,8 @@ app.post('/hook', function (req, res) {
console
.
log
(
'[request source] '
,
eventObj
.
source
);
console
.
log
(
'[request message]'
,
eventObj
.
message
);
var
cmd
=
eventObj
.
message
.
text
;
if
(
cmd
==
"영어"
){
transen
(
eventObj
.
replyToken
,
eventObj
.
message
.
text
);
}
...
...
Please
register
or
login
to post a comment