신원형

line chat test (1)

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