Toggle navigation
Toggle navigation
This project
Loading...
Sign in
백승욱
/
movie-reco-chatbot
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-06-08 01:42:54 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4ec62bbf69a9daeae3456cbb43a3eeb6717fd617
4ec62bbf
1 parent
68d30bb0
Modify ShowMenu() & README.md
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
README.md
main.js
README.md
View file @
4ec62bb
...
...
@@ -24,19 +24,19 @@
1.
[
영화진흥위원회 API
](
https://www.kobis.or.kr/kobisopenapi/homepg/main/main.do
)
에서 무료 API 키를 발급 받습니다.
2.
리포지토리를 클론합니다.
git clone http://khuhub.khu.ac.kr/2018104006/movie-reco-chatbot.git
`git clone http://khuhub.khu.ac.kr/2018104006/movie-reco-chatbot.git`
3.
NPM packages 설치합니다.
npm install
`npm install`
4.
`config.json`
파일 안에 발급받은 API 키를 추가합니다.
"KOFIC_KEY" : "Insert user key value";
`"KOFIC_KEY" : "Insert user key value";`
5.
라인 어플리케이션에서 챗봇을 친구로 추가합니다.
Chatbot ID : @093sjoog
`Chatbot ID : @093sjoog`
<div
align=
"center"
><img
src=
"./images/QRcode.png"
width=
"20%"
height=
"20%"
></div>
...
...
main.js
View file @
4ec62bb
...
...
@@ -28,9 +28,9 @@ const user_id = config.USER_ID;
// SHOW MENU
function
ShowMenu
()
{
function
ShowMenu
(
replyToken
)
{
request
.
post
({
url
:
LINE_URL
+
'/
push
'
,
url
:
LINE_URL
+
'/
reply
'
,
headers
:
{
'Authorization'
:
`Bearer
${
TOKEN
}
`
},
...
...
@@ -71,7 +71,7 @@ function Response(replyToken, message) {
MovieInfo
.
MovieInfo
(
replyToken
,
message
);
}
else
if
(
message
==
'0'
||
message
==
'0번'
)
{
ShowMenu
();
ShowMenu
(
replyToken
);
}
else
if
(
message
==
'1'
||
message
==
'1번'
)
{
BoxOffice
.
ShowYesterdayRank
(
replyToken
);
...
...
Please
register
or
login
to post a comment