Toggle navigation
Toggle navigation
This project
Loading...
Sign in
백승욱
/
movie-reco-chatbot
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
김준서
2022-06-08 01:45:01 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
540e801ecd8d88e2733b5a89c69473c69ed530f3
540e801e
1 parent
95bb97b4
Edit Showmenu function
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
main.js
main.js
View file @
540e801
...
...
@@ -28,7 +28,7 @@ const user_id = config.USER_ID;
// SHOW MENU
function
ShowMenu
()
{
function
ShowMenu
(
replyeToken
)
{
request
.
post
({
url
:
LINE_URL
+
'/push'
,
headers
:
{
...
...
@@ -48,8 +48,6 @@ function ShowMenu() {
});
}
ShowMenu
();
// RECEIVE MESSAGE
app
.
post
(
'/hook'
,
function
(
req
,
res
)
{
...
...
@@ -71,7 +69,7 @@ function Response(replyToken, message) {
MovieInfo
.
MovieInfo
(
replyToken
,
message
);
}
else
if
(
message
==
'0'
||
message
==
'0번'
)
{
ShowMenu
();
ShowMenu
(
replyeToken
);
}
else
if
(
message
==
'1'
||
message
==
'1번'
)
{
BoxOffice
.
ShowYesterdayRank
(
replyToken
);
...
...
@@ -94,7 +92,7 @@ function Response(replyToken, message) {
}
else
{
Exception
.
SayIDontKnow
(
replyToken
);
ShowMenu
();
ShowMenu
(
replyeToken
);
}
}
...
...
Please
register
or
login
to post a comment