Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신지원
/
LineMusicChatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
엄성진
2021-06-07 17:07:08 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
55f2171064a1d189315f60d6c3b57c17ffbe28cb
55f21710
1 parent
fb69550e
Simply Function, Add Searching Function, Add User Setting(part)
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
14 deletions
all_ids.js
check.js
index.js
all_ids.js
View file @
55f2171
...
...
@@ -41,5 +41,5 @@ exports.all_ids[302] = 'PLfVO1GXBPp3ubihJVPi6HSltRIuvSqSI1'
exports
.
all_ids
[
303
]
=
'PLfVO1GXBPp3u0ckIfYZkADGlSQ6LQoAIQ'
exports
.
all_ids
[
304
]
=
'PLfVO1GXBPp3vo3sivJPfFzREBECRFepVK'
exports
.
all_ids
[
501
]
=
[
'p5iu1V30myk'
,
'i-SBnhaZSSU'
,
'Etfgb6A7hSI'
,
'IN2mml9xs_s'
,
'tp1uoFAfgHE'
,
'Qx22TnVVIfU'
,
'3y1QIqR115A'
,
'VXBI1wt8XII'
,
'aWMBn2--E0Q'
,
'HyTbgBlnLCo'
];
\ No newline at end of file
//exports.all_ids[501] = ['p5iu1V30myk', 'i-SBnhaZSSU', 'Etfgb6A7hSI', 'IN2mml9xs_s',
// 'tp1uoFAfgHE', 'Qx22TnVVIfU', '3y1QIqR115A', 'VXBI1wt8XII', 'aWMBn2--E0Q', 'HyTbgBlnLCo'];
\ No newline at end of file
...
...
check.js
View file @
55f2171
This diff is collapsed. Click to expand it.
index.js
View file @
55f2171
...
...
@@ -6,17 +6,11 @@ const HTTPS = require('https');
const
domain
=
"2020105631.oss2021.tk"
const
sslport
=
23023
;
const
bodyParser
=
require
(
'body-parser'
);
const
TARGET_URL
=
'https://api.line.me/v2/bot/message/reply'
;
// var Info = require('./Info');
const
TARGET_URL
=
'https://api.line.me/v2/bot/message/reply'
var
app
=
express
();
app
.
use
(
bodyParser
.
json
());
<<<<<<<
HEAD
var
sad
=
require
(
'./video_sad'
);
=======
var
songs
=
require
(
'./check'
);
>>>>>>>
feature
/
YouTube_API
var
thumbnail
=
1
;
// 썸네일 출력 여부 (1:출력/0:미출력/기본값:1)
app
.
post
(
'/hook'
,
function
(
req
,
res
)
{
...
...
@@ -26,10 +20,11 @@ app.post('/hook', function (req, res) {
// request log
console
.
log
(
'======================'
,
new
Date
(),
'======================'
);
send
(
eventObj
.
replyToken
,
message
.
text
);
send
(
eventObj
.
replyToken
,
message
.
text
,
eventObj
.
source
.
userId
);
res
.
sendStatus
(
200
);
});
function
send
(
replyToken
,
message
)
{
function
send
(
replyToken
,
message
,
userId
)
{
request
.
post
(
{
...
...
@@ -37,8 +32,7 @@ function send(replyToken, message) {
},
function
()
{
songs
.
check
(
message
,
replyToken
);
songs
.
check
(
message
,
replyToken
,
userId
);
}
);
}
...
...
Please
register
or
login
to post a comment