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-06 21:03:48 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1b2469da11078d55704bc27494eee464f2f55cea
1b2469da
1 parent
9635e473
Make features directory
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
DailyBoxOfficeList.js → features/DailyBoxOfficeList.js
Exception.js → features/Exception.js
MovieInfo.js → features/MovieInfo.js
MovieList.js → features/MovieList.js
MovieRecommend.js → features/MovieRecommend.js
main.js
DailyBoxOfficeList.js
→
features/
DailyBoxOfficeList.js
View file @
1b2469d
//=============================================================
var
express
=
require
(
'express'
);
const
request
=
require
(
'request'
);
const
config
=
require
(
'./config.json'
);
const
config
=
require
(
'.
.
/config.json'
);
//=============================================================
const
LINE_REPLY_URL
=
'https://api.line.me/v2/bot/message/reply'
const
TOKEN
=
config
.
TOKEN
;
...
...
Exception.js
→
features/
Exception.js
View file @
1b2469d
//=============================================================
var
express
=
require
(
'express'
);
const
request
=
require
(
'request'
);
const
config
=
require
(
'./config.json'
);
const
config
=
require
(
'.
.
/config.json'
);
//=============================================================
const
LINE_URL
=
'https://api.line.me/v2/bot/message'
;
const
TOKEN
=
config
.
TOKEN
;
...
...
MovieInfo.js
→
features/
MovieInfo.js
View file @
1b2469d
//=============================================================
var
express
=
require
(
'express'
);
const
request
=
require
(
'request'
);
const
config
=
require
(
'./config.json'
);
const
config
=
require
(
'.
.
/config.json'
);
//=============================================================
const
LINE_URL
=
'https://api.line.me/v2/bot/message/reply'
const
TOKEN
=
config
.
TOKEN
;
...
...
MovieList.js
→
features/
MovieList.js
View file @
1b2469d
var
express
=
require
(
'express'
);
const
request
=
require
(
'request'
);
var
config
=
require
(
'./config.json'
);
var
config
=
require
(
'.
.
/config.json'
);
const
TARGET_URL
=
'https://api.line.me/v2/bot/message/reply'
const
TOKEN
=
config
.
TOKEN
;
const
KOFIC_URL
=
'http://www.kobis.or.kr/kobisopenapi/webservice/rest'
...
...
MovieRecommend.js
→
features/
MovieRecommend.js
View file @
1b2469d
const
request
=
require
(
'request'
);
var
config
=
require
(
'./config.json'
);
var
config
=
require
(
'.
.
/config.json'
);
const
TARGET_URL
=
'https://api.line.me/v2/bot/message/reply'
const
TOKEN
=
config
.
TOKEN
;
const
KOFIC_URL
=
'http://www.kobis.or.kr/kobisopenapi/webservice/rest'
...
...
main.js
View file @
1b2469d
...
...
@@ -17,11 +17,11 @@ const bodyParser = require('body-parser');
var
app
=
express
();
app
.
use
(
bodyParser
.
json
());
//=============================================================
var
BoxOffice
=
require
(
'./DailyBoxOfficeList.js'
);
var
MovieList
=
require
(
'./MovieList.js'
);
var
MovieInfo
=
require
(
'./MovieInfo.js'
);
var
MovieReco
=
require
(
'./MovieRecommend.js'
);
var
Exception
=
require
(
'./Exception.js'
);
var
BoxOffice
=
require
(
'./
features/
DailyBoxOfficeList.js'
);
var
MovieList
=
require
(
'./
features/
MovieList.js'
);
var
MovieInfo
=
require
(
'./
features/
MovieInfo.js'
);
var
MovieReco
=
require
(
'./
features/
MovieRecommend.js'
);
var
Exception
=
require
(
'./
features/
Exception.js'
);
//=============================================================
const
user_id
=
config
.
USER_ID
;
//=============================================================
...
...
Please
register
or
login
to post a comment