Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신원형
/
study-or-enjoy
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
신원형
2022-06-06 10:47:35 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2f5ebd41b8426798662b0785ea5b253d38286587
2f5ebd41
1 parent
55832ec1
line chat test (1)
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
21 deletions
.vscode/launch.json
Dockerfile
main.js
.vscode/launch.json
View file @
2f5ebd4
...
...
@@ -28,7 +28,7 @@
"skipFiles"
:
[
"<node_internals>/**"
],
"program"
:
"${workspaceFolder}
\\
main.js"
"program"
:
"${workspaceFolder}
/
main.js"
}
]
}
\ No newline at end of file
...
...
Dockerfile
deleted
100644 → 0
View file @
55832ec
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
main.js
View file @
2f5ebd4
...
...
@@ -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
)
{
...
...
Please
register
or
login
to post a comment