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 19:20:21 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c79a77348ee811ccabee2b9a950c139b3f0aeab5
c79a7734
1 parent
a849ebd9
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app.js
app.js
View file @
c79a773
...
...
@@ -80,7 +80,7 @@ async function handleEvent(event) {
// ignore non-message event
return
Promise
.
resolve
(
null
);
}
else
if
(
event
.
type
==
'message'
&&
event
.
message
.
type
==
"text"
&&
event
.
message
.
text
.
indexOf
(
'http
s
://'
)
!=-
1
&&
event
.
message
.
text
.
indexOf
(
'png'
)
!=-
1
&&
event
.
message
.
text
.
indexOf
(
'jpg'
)
!=-
1
)
{
else
if
(
event
.
type
==
'message'
&&
event
.
message
.
type
==
"text"
&&
event
.
message
.
text
.
indexOf
(
'http://'
)
!=-
1
&&
event
.
message
.
text
.
indexOf
(
'png'
)
!=-
1
&&
event
.
message
.
text
.
indexOf
(
'jpg'
)
!=-
1
)
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
await
client
.
getMessageContent
(
event
.
message
.
id
)
...
...
Please
register
or
login
to post a comment