Showing
1 changed file
with
4 additions
and
3 deletions
1 | var express = require('express'); | 1 | var express = require('express'); |
2 | const request = require('request'); | 2 | const request = require('request'); |
3 | +var config = require('./config.json'); | ||
3 | const TARGET_URL = 'https://api.line.me/v2/bot/message/reply' | 4 | const TARGET_URL = 'https://api.line.me/v2/bot/message/reply' |
4 | -const TOKEN = 'ejLSECVgPBYNuEumq2Nw0w9ibDBoK9ixMnOp4jk41cLqHU5+vL1s5q7L4Ko7QcEiSCq1eJc1dPzG5P7HbbOKx490Oe6S1qZ7ob3YiTyfNN1NuOTm9jNYW22ctklbb8tFlDIDgSZbwz48jvQmAbdY9QdB04t89/1O/w1cDnyilFU=' | 5 | +const TOKEN = config.TOKEN; |
5 | const KOFIC_URL = 'http://www.kobis.or.kr/kobisopenapi/webservice/rest/movie/searchMovieInfo.json' | 6 | const KOFIC_URL = 'http://www.kobis.or.kr/kobisopenapi/webservice/rest/movie/searchMovieInfo.json' |
6 | -const KOFIC_KEY = 'fc36c6b83d1b3f06d8dc861b7e22787b' | 7 | +const KOFIC_KEY = config.KOFIC_KEY; |
7 | 8 | ||
8 | const fs = require('fs'); | 9 | const fs = require('fs'); |
9 | const path = require('path'); | 10 | const path = require('path'); |
10 | const HTTPS = require('https'); | 11 | const HTTPS = require('https'); |
11 | -const domain = "2018102181.osschatbot2022.tk" | 12 | +const domain = config.domain; |
12 | const sslport = 23023; | 13 | const sslport = 23023; |
13 | const bodyParser = require('body-parser'); | 14 | const bodyParser = require('body-parser'); |
14 | var app = express(); | 15 | var app = express(); | ... | ... |
-
Please register or login to post a comment