Toggle navigation
Toggle navigation
This project
Loading...
Sign in
곽원석
/
OSS-Project
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
곽원석
2020-12-10 10:48:16 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9d21d432d19415e44edf75867817c178e255ec51
9d21d432
1 parent
ed653e7a
Update app.js(일반사용자용)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app.js
app.js
View file @
9d21d43
...
...
@@ -11,11 +11,11 @@ var moment = require('moment');
// 라인 메신져
const
TARGET_URL
=
'https://api.line.me/v2/bot/message/reply'
const
TOKEN
=
'
OPv3udmn1UGx+xWZFm80KeZbeGJm63nyt+sTpvBr1Mbc1Y0FAeK4MohQLcWq5yytJ6vnaNgXZfigAEFdbjzs05b4QAU+9r1jcZ05t6QvhWDTRYT0Z+YDMMePXtrQYCT84kmkH0OpJ4smBFwLxrtwtAdB04t89/1O/w1cDnyilFU=
'
const
TOKEN
=
'
발급 받은 라인 메신져 토큰
'
// 공공보건포털_API
const
CORONA_URL
=
'http://openapi.data.go.kr/openapi/service/rest/Covid19/getCovid19InfStateJson'
;
const
SERVICE_KEY
=
'
DMUPOq6b%2B%2F1gqfLEXQ6bnhgoTO73BfPprA6HVNcV%2F6vHMGG%2Bgiw%2BPDkPvX1eQ7b9uvl%2B42fxUPkU0W3Si907Lw%3D%3D
'
const
SERVICE_KEY
=
'
발급 받은 서비스 키
'
queryParams
=
'?'
+
encodeURIComponent
(
'ServiceKey'
)
+
'='
+
SERVICE_KEY
;
// Service Key
queryParams
+=
'&'
+
encodeURIComponent
(
'pageNo'
)
+
'='
+
encodeURIComponent
(
'1'
);
queryParams
+=
'&'
+
encodeURIComponent
(
'numOfRows'
)
+
'='
+
encodeURIComponent
(
'4'
);
...
...
@@ -31,7 +31,7 @@ const fs = require('fs');
const
path
=
require
(
'path'
);
const
HTTPS
=
require
(
'https'
);
const
{
measureMemory
}
=
require
(
'vm'
);
const
domain
=
"
www.oss-chatbot-kwak.tk
"
const
domain
=
"
사용할 도메인
"
const
sslport
=
23023
;
// 챗봇으로 입력
...
...
Please
register
or
login
to post a comment