Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
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
나혜원
2019-12-05 21:14:23 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
da7c5b3f728b6de30344c022897ed54e3e7d9675
da7c5b3f
1 parent
d56a7730
ud
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
concert.js
concert.js
View file @
da7c5b3
...
...
@@ -105,9 +105,9 @@ function handleEvent(event) {
});
}
else
if
(
isNaN
(
event
.
message
.
text
)
){
else
if
(
0
<
event
.
message
.
text
.
substr
(
0
,
2
)
*
1
<
27
){
var
selectnum
=
(
event
.
message
.
text
*
1
);
var
selectnum
=
(
event
.
message
.
text
.
substr
(
0
,
2
)
*
1
);
if
(
selectnum
>=
0
||
selectnum
<=
27
){
result
.
text
=
'목록에 존재하지 않는 콘서트입니다.'
;
...
...
@@ -137,11 +137,10 @@ function handleEvent(event) {
var
temp
=
body
.
split
(
':'
);
videourl
.
url
+=
"https://www.youtube.com/watch?v="
+
temp1
[
13
].
substr
(
2
,
11
);
});
console
.
log
(
videourl
.
url
);
client
.
replyMessage
(
event
.
replyToken
,
videourl
).
then
(
resolve
).
catch
(
reject
);
console
.
log
(
videourl
.
url
);
client
.
replyMessage
(
event
.
replyToken
,
videourl
).
then
(
resolve
).
catch
(
reject
);
});
})};
app
.
post
(
'/webhook'
,
line
.
middleware
(
config
),
(
req
,
res
)
=>
{
...
...
Please
register
or
login
to post a comment