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 22:57:09 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
37c2dc5876ad40cc11ca68d3e97c7bd93db192af
37c2dc58
1 parent
f4d16646
Update concert.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
concert.js
concert.js
View file @
37c2dc5
...
...
@@ -134,12 +134,12 @@ function handleEvent(event) {
request
(
options
,
function
(
error
,
result
,
body
){
if
(
error
)
throw
new
Error
(
error
);
var
videourl
=
{
type
:
'
location'
,
label
:
'관련 영상'
,
title
:
'name'
,
address
:
''
};
var
videourl
=
{
type
:
'
text'
,
text
:
''
};
var
temp1
=
body
.
split
(
':'
);
videourl
.
address
+=
"https://www.youtube.com/watch?v="
+
temp1
[
13
].
substr
(
2
,
11
);
videourl
.
text
+=
"https://www.youtube.com/watch?v="
+
temp1
[
13
].
substr
(
2
,
11
);
console
.
log
(
videourl
.
address
);
console
.
log
(
videourl
.
text
);
client
.
replyMessage
(
event
.
replyToken
,
videourl
).
then
(
resolve
).
catch
(
reject
);
});
});
...
...
Please
register
or
login
to post a comment