Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최재웅
/
menu_recommand_webpage
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
taegwon
2022-06-09 14:47:54 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
784f9618ffd8bb01ba780a1e5280f24de982b1af
784f9618
1 parent
4e57de64
app.js finish
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
CHATBOT/app.js
CHATBOT/app.js
View file @
784f961
...
...
@@ -37,12 +37,7 @@ app.post('/hook', function (req, res) {
console
.
log
(
'[request source] '
,
eventObj
.
source
);
console
.
log
(
'[request message]'
,
eventObj
.
message
);
if
(
eventObj
.
message
.
text
==
'reset'
){
count
=
0
;
selected_food
=
''
;
located
=
''
;
real_data
=
''
;
}
else
if
(
eventObj
.
message
.
text
==
'start'
)
{
if
(
eventObj
.
message
.
text
==
'start'
)
{
count
++
;
start_msg
(
eventObj
.
replyToken
);
...
...
@@ -166,7 +161,7 @@ async function start_msg(replyToken)
"messages"
:
[
{
"type"
:
"text"
,
"text"
:
"안녕하세요 메뉴 추천 챗봇입니다! 안내에 따라 주시면 제가 메뉴를 추천해 드리겠습니다.\n진행하시겠습니까? (y/n)
\n(reset를 입력하면 초기화됩니다.)
"
"text"
:
"안녕하세요 메뉴 추천 챗봇입니다! 안내에 따라 주시면 제가 메뉴를 추천해 드리겠습니다.\n진행하시겠습니까? (y/n)"
}
]
...
...
Please
register
or
login
to post a comment