Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김시환
/
emergency_room_ChatBot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
EC2 Default User
2022-11-29 05:27:12 +0000
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
ed108b97bac5334b6e172750fb8a65b9aca7aa58
ed108b97
2 parents
ba41f956
deb4ba1b
Merge branch 'sihwan'
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
4 deletions
app.js
app.js
View file @
ed108b9
...
...
@@ -49,10 +49,37 @@ function find_current(eventObj,res){ //Two
"replyToken"
:
eventObj
.
replyToken
,
//eventObj.replyToken
"messages"
:[
{
"type"
:
"text"
,
// ①
"text"
:
"응급 상황인가요?"
},
{
"type"
:
"text"
,
"text"
:
"현재있는 위치의 주소나 보이는 곳을 입력하세요."
},
"type"
:
"location"
,
"title"
:
"현재위치"
,
"address"
:
"경기 안산시 단원구 석수동길"
,
"latitude"
:
37.3446767467006
,
"longitude"
:
126.807581282114
},
{
"type"
:
"template"
,
"altText"
:
"This is a buttons template"
,
"template"
:
{
"type"
:
"buttons"
,
"text"
:
"이곳이 맞나요?"
,
"defaultAction"
:
{
"type"
:
"uri"
,
"label"
:
"View detail"
,
"uri"
:
"http://example.com/page/123"
},
"actions"
:
[
{
"type"
:
"postback"
,
"label"
:
"네"
,
"data"
:
"action=buy&itemid=123"
},
{
"type"
:
"postback"
,
"label"
:
"아니요"
,
"data"
:
"action=add&itemid=123"
},
]
}
}
],
...
...
@@ -76,6 +103,10 @@ app.post('/hook', function (req, res) {
}
else
if
(
event_time
==
2
){
find_current
(
eventObj
,
res
)
event_time
=
3
}
else
if
(
event_time
==
3
){
}
});
...
...
Please
register
or
login
to post a comment