Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이종규
/
chatbot_project
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
JKL
2021-12-02 23:46:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b5c733573a51a1500075328291c80585dad1e04f
b5c73357
1 parent
a936fbc0
Update_Academic_information
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
24 deletions
app.js
app.js
View file @
b5c7335
...
...
@@ -14,7 +14,8 @@ app.post('/message', (req, res) => {
const
goMain
=
'처음으로'
;
var
data
;
if
(
question
==
"도움말"
){
// 학사정보 간편보기
if
(
question
==
"간편하게 보는 학사정보"
){
data
=
{
"version"
:
"2.0"
,
"template"
:
{
...
...
@@ -22,34 +23,41 @@ app.post('/message', (req, res) => {
{
"listCard"
:
{
"header"
:
{
"title"
:
"KHU 학사정보 알리미
를 소개합니다.
"
"title"
:
"KHU 학사정보 알리미"
},
"items"
:
[
{
"title"
:
"
KHU 학사정보 알리미
"
,
"title"
:
"
장학금 공지사항
"
,
"description"
:
"챗봇으로 손쉽게 알아보는 학사정보"
,
"imageUrl"
:
"https://mblogthumb-phinf.pstatic.net/20140716_293/envicontest_1405437648963lV4y4_GIF/University_Seal.gif?type=w2"
,
"link"
:
{
"web"
:
""
"web"
:
"
https://www.khu.ac.kr/kor/notice/list.do?category=SCHOLARSHIP&page=1
"
}
},
{
"title"
:
"
오늘의 학식이 궁금하세요
?"
,
"description"
:
"
지금 바로 알아
보세요."
,
"imageUrl"
:
"https://cdn-icons.flaticon.com/png/128/
561/premium/561611.png?token=exp=1638429953~hmac=d25a53d3500363101c3364408df33e55
"
,
"title"
:
"
공용 소프트웨어 필요할 땐
?"
,
"description"
:
"
경희대학교 정보처를 이용해
보세요."
,
"imageUrl"
:
"https://cdn-icons.flaticon.com/png/128/
2888/premium/2888407.png?token=exp=1638455259~hmac=d58c655e0ac8a16809b48323ea83a75f
"
,
"link"
:
{
"web"
:
""
"web"
:
"
https://ois.khu.ac.kr/index.do?sso=ok
"
}
},
{
"title"
:
"
셔틀버스 정보 알아보기
"
,
"description"
:
"
셔틀버스 정보
알아보기"
,
"imageUrl"
:
"https://cdn-icons
-png.flaticon.com/128/808/808375.png
"
,
"title"
:
"
학사 공지사항
"
,
"description"
:
"
학사 일정 공지사항
알아보기"
,
"imageUrl"
:
"https://cdn-icons
.flaticon.com/png/128/3277/premium/3277431.png?token=exp=1638455425~hmac=4fe1afa937ad2ca62e17e25a34aa342e
"
,
"link"
:
{
"web"
:
""
"web"
:
"
https://www.khu.ac.kr/kor/notice/list.do?category=UNDERGRADUATE&page=1
"
}
}
],
"buttons"
:
[
{
"label"
:
"홈페이지 구경가기"
,
"action"
:
"webLink"
,
"webLinkUrl"
:
"https://www.khu.ac.kr/kor/main/index.do"
}
]
}
}
]
...
...
@@ -57,6 +65,7 @@ app.post('/message', (req, res) => {
}
}
//학식
if
(
question
==
"서울캠퍼스"
)
{
data
=
{
'version'
:
'2.0'
,
...
...
@@ -76,19 +85,35 @@ app.post('/message', (req, res) => {
}
}
else
if
(
question
==
"국제캠퍼스"
)
{
data
=
{
'version'
:
'2.0'
,
'template'
:
{
'outputs'
:
[{
'simpleImage'
:
{
'imageUrl'
:
""
,
'altText'
:
"국제캠퍼스 식단입니다."
"version"
:
"2.0"
,
"template"
:
{
"outputs"
:
[
{
"basicCard"
:
{
"title"
:
"국제캠퍼스 학식"
,
"description"
:
"오늘의 학식은 무엇일까?!"
,
"thumbnail"
:
{
"imageUrl"
:
"https://ww.namu.la/s/e38da99cb3bbad5d4a7f19a015fc2a888e01a7c996bb18465f8ba242a21ac5b3d1f2f977094552b00c706aab9c5c7e48dedae0103ed84d8039376458bebeaf0c43c7642b2544a52a016d0633eeab043924071315d41e15ef8df134009508ec03"
},
"profile"
:
{
"imageUrl"
:
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT4BJ9LU4Ikr_EvZLmijfcjzQKMRCJ2bO3A8SVKNuQ78zu2KOqM"
,
"nickname"
:
"학식"
},
"social"
:
{
"like"
:
1238
,
"comment"
:
8
,
"share"
:
780
},
"buttons"
:
[
{
"action"
:
"webLink"
,
"label"
:
"학식보기"
,
"webLinkUrl"
:
"https://www.khu.ac.kr/kor/forum/list.do?type=RESTAURANT&category=INTL&page=1"
}
}],
'quickReplies'
:
[{
'label'
:
goMain
,
'action'
:
'message'
,
'messageText'
:
goMain
}]
]
}
}
]
}
}
}
...
...
Please
register
or
login
to post a comment