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 23:56:48 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7a2030c359d9830c1614a7d3e039246e0e42884e
7a2030c3
1 parent
637df543
modify functions
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app.js
app.js
View file @
7a2030c
...
...
@@ -125,7 +125,7 @@ function handleEvent(event) {
var
$
=
cheerio
.
load
(
html
);
lyric
=
$
(
'#pLyrics > p'
).
text
();
lyric
=
lyric
.
substring
(
0
,
15
0
);
lyric
=
lyric
.
substring
(
0
,
30
0
);
return
new
Promise
(
function
(
resolve
,
reject
)
{
...
...
@@ -222,7 +222,7 @@ function handleEvent(event) {
data
=
data
.
substring
(
data
.
indexOf
(
'text\\'
)
+
9
);
text
+=
data
.
substring
(
0
,
data
.
indexOf
(
"\\"
))
+
" "
;
}
text
=
text
.
substring
(
text
.
length
/
10
+
1
,
text
.
length
/
8
+
2
);
text
=
text
.
substring
(
text
.
length
/
10
+
1
,
text
.
length
/
8
+
10
);
text
=
text
.
replace
(
' '
,
''
);
text
=
text
.
substr
(
0
,
text
.
indexOf
(
' '
));
console
.
log
(
text
);
...
...
Please
register
or
login
to post a comment