Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신지원
/
LineMusicChatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
엄성진
2021-06-08 15:47:24 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1dbae45fc01e97fe82c3619387903c62b872127d
1dbae45f
1 parent
de2b6684
Fix Syntax Error
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
index.js
index.js
View file @
1dbae45
...
...
@@ -21,7 +21,9 @@ app.post('/hook', function (req, res) {
console
.
log
(
'======================'
,
new
Date
(),
'======================'
);
if
(
eventObj
.
type
==
"message"
)
// 일반 메시지일때
{
react
(
eventObj
.
replyToken
,
message
.
text
,
eventObj
.
source
.
userId
);
}
else
switch
(
eventObj
.
postback
.
data
)
{
...
...
@@ -99,11 +101,11 @@ app.post('/hook', function (req, res) {
break
;
//else if
(출력 개수 설정 버튼을 누르고 거기서 응답이 들어왔을때)
};
//case
(출력 개수 설정 버튼을 누르고 거기서 응답이 들어왔을때)
}
res
.
sendStatus
(
200
);
}
);
function
react
(
replyToken
,
message
,
userId
)
{
request
.
post
(
...
...
Please
register
or
login
to post a comment