Toggle navigation
Toggle navigation
This project
Loading...
Sign in
방승일
/
find_mbti_bot
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-05-26 05:32:46 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
003c222cea23429c11fe5a535a6a5246beb57275
003c222c
1 parent
2c934139
Add question2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
app/app.js
app/app.js
View file @
003c222
...
...
@@ -76,6 +76,43 @@ apiRouter.post('/question3', function(req, res) {
res
.
status
(
200
).
send
(
responseBody
);
});
apiRouter
.
post
(
'/Q2'
,
function
(
req
,
res
)
{
const
responseBody
=
{
version
:
"2.0"
,
template
:
{
outputs
:
[
{
simpleText
:
{
text
:
'평소 깻잎논쟁에 1시간 이상을 생각해봤다.\n맞다면 N 아니면 S을 입력해주세요.'
}
}
]
}
};
res
.
status
(
200
).
send
(
responseBody
);
});
apiRouter
.
post
(
'/A2'
,
function
(
req
,
res
)
{
const
userRequest
=
req
.
body
.
userRequest
;
const
utter
=
userRequest
.
utterance
;
const
responseBody
=
{
version
:
"2.0"
,
template
:
{
outputs
:
[
{
simpleText
:
{
text
:
'당신의 MBTI는 *'
+
utter
+
'** 입니다.'
}
}
]
}}
res
.
status
(
200
).
send
(
responseBody
);
});
app
.
listen
((
process
.
env
.
PORT
||
3000
),
function
()
{
console
.
log
(
'Example skill server listening on port 3000!'
);
...
...
Please
register
or
login
to post a comment