신원형

line chat test (1)

...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 "skipFiles": [ 28 "skipFiles": [
29 "<node_internals>/**" 29 "<node_internals>/**"
30 ], 30 ],
31 - "program": "${workspaceFolder}\\main.js" 31 + "program": "${workspaceFolder}/main.js"
32 } 32 }
33 ] 33 ]
34 } 34 }
...\ No newline at end of file ...\ No newline at end of file
......
1 -FROM node:latest
2 -
3 -LABEL project="OSS Demo image"
4 -LABEL maintainer "."
5 -
6 -RUN apt-get update
7 -
8 -WORKDIR /usr/app
9 -COPY ./ /usr/app
10 -
11 -EXPOSE 8110
12 -RUN npm install
13 -CMD [ "npm","start" ]
14 -RUN cd /usr/app
15 -RUN ls -a
...\ No newline at end of file ...\ No newline at end of file
...@@ -10,7 +10,7 @@ const TARGET_URL = 'https://api.line.me/v2/bot/message/reply' ...@@ -10,7 +10,7 @@ const TARGET_URL = 'https://api.line.me/v2/bot/message/reply'
10 const tokens = JSON.parse(fs.readFileSync("setting.json")) 10 const tokens = JSON.parse(fs.readFileSync("setting.json"))
11 const sslport = 23023; 11 const sslport = 23023;
12 const domain = tokens.domain 12 const domain = tokens.domain
13 -const TOKEN = tokens.channel 13 +const TOKEN = tokens.channel_access
14 const id = tokens.id 14 const id = tokens.id
15 const pw = tokens.pw 15 const pw = tokens.pw
16 16
...@@ -73,9 +73,9 @@ function sendLocation(replyToken, latitude, longitude, locationAdd, locationName ...@@ -73,9 +73,9 @@ function sendLocation(replyToken, latitude, longitude, locationAdd, locationName
73 } 73 }
74 74
75 function filter_date(date, id, pw) { 75 function filter_date(date, id, pw) {
76 - const schedule = canvas.get_schedule(id, pw, date) 76 + //const schedule = canvas.get_schedule(id, pw, date)
77 - const first_todo = selector.is_possible_schedule(date, schedule) 77 + //const first_todo = selector.is_possible_schedule(date, schedule)
78 - 78 + const first_todo = false
79 if (first_todo) { 79 if (first_todo) {
80 return `제출되지 않은 과제가 있습니다. ${first_todo}` 80 return `제출되지 않은 과제가 있습니다. ${first_todo}`
81 } 81 }
...@@ -183,7 +183,7 @@ app.post('/hook', async function (req, res) { ...@@ -183,7 +183,7 @@ app.post('/hook', async function (req, res) {
183 sendText(eventObj.replyToken, filter_result) 183 sendText(eventObj.replyToken, filter_result)
184 } 184 }
185 185
186 - const good_weather = (await weather.get_weather_current()).then(it => { 186 + const good_weather = (weather.get_weather_current()).then(it => {
187 return is_good_weather(it) 187 return is_good_weather(it)
188 }) 188 })
189 if (!good_weather) { 189 if (!good_weather) {
......