Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최재은
/
밀당강의봇
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
김예미
2019-06-02 18:52:32 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0744c2885eb10114429e91529e782057cfb71056
0744c288
1 parent
dc0720a2
Edit Template 2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
18 deletions
template.js
template.js
View file @
0744c28
...
...
@@ -15,21 +15,21 @@ exports.greetingTemplate = () => {
"title"
:
greetingTitle
[
0
],
"payload"
:
"CHOICE_BY_PROF"
,
"stat"
:
"stat_0"
,
"rate"
:{}
;
"rate"
:{}
},
{
"type"
:
"postback"
,
"title"
:
greetingTitle
[
1
],
"payload"
:
"CHOICE_BY_LECT"
"payload"
:
"CHOICE_BY_LECT"
,
"stat"
:
"stat_0"
,
"rate"
:{}
;
"rate"
:{}
},
{
"type"
:
"postback"
,
"title"
:
greetingTitle
[
2
],
"payload"
:
"HELP"
"payload"
:
"HELP"
,
"stat"
:
"stat_0"
,
"rate"
:{}
;
"rate"
:{}
}
]
}
...
...
@@ -39,44 +39,57 @@ exports.greetingTemplate = () => {
//payload === 'CHOICE_BY_PROF'
exports
.
getProfNameTemplate
=
(
received
)
=>
{
return
{
"attachment"
:{
"type"
:
"template"
,
"payload"
:{
"template_type"
:
"button"
,
"text"
:
"교수명을 입력하세요."
,
"buttons"
:[
{
"type"
:
"postback"
,
"title"
:
"처음으로"
,
"payload"
:
'Greeting'
,
"stat"
:
'stat_0'
,
"rate"
:{}
}
]
}
}
}
}
exports
.
choiceLectOfProfTemplate
=
(
received
)
=>
{
//메세지
}
exports
.
rateTemplate
=
(
received
)
=>
{
//버튼
}
//payload === 'CHOICE_BY_LECT'
exports
.
getLectNameTemplate
=
(
received
)
=>
{
//버튼
}
exports
.
choiceLectTemplate
=
(
received
)
=>
{
//메세지
}
exports
.
choiceProfOfLectTemplate
=
(
received
)
=>
{
}
exports
.
rateTemplate
=
(
received
)
=>
{
//버튼
}
exports
.
goToChoiceByProfTemplate
=
(
received
)
=>
{
//버튼
}
//payload === 'HELP'
exports
.
howToTemplate
=
(
received
)
=>
{
//버튼
}
exports
.
goToGreetTemplate
=
(
received
)
=>
{
//버튼
}
...
...
Please
register
or
login
to post a comment