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 14:46:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8c8d9dbcbb6947f7eed5e9b08f36146926a55267
8c8d9dbc
1 parent
509d54fc
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
app.js
app.js
View file @
8c8d9db
...
...
@@ -53,6 +53,8 @@ const client = new line.Client(config);
// register a webhook handler with middleware
// about the middleware, please refer to doc
/*
app.post('/webhook', line.middleware(config), (req, res) => {
console.log(res.statusCode);
Promise
...
...
@@ -61,7 +63,7 @@ console.log(res.statusCode);
});
// event handler
function handleEvent(event) {
console
.
log
(
event
.
message
)
console.log(event.message)
;
if (event.type !== 'message' || event.message.type !== 'text') {
// ignore non-text-message event
return Promise.resolve(null);
...
...
@@ -129,3 +131,8 @@ function handleEvent(event) {
});
}
*/
app
.
get
(
'/'
,(
req
,
res
)
=>
{
res
.
send
(
"hellow world"
);
})
\ No newline at end of file
...
...
Please
register
or
login
to post a comment