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:21:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8deb9acdf4e21c02fe3f116fb73b225b96115dbf
8deb9acd
1 parent
c79a7734
Update app.js
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app.js
app.js
View file @
8deb9ac
...
...
@@ -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://'
)
!=-
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
)
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
await
client
.
getMessageContent
(
event
.
message
.
id
)
...
...
Please
register
or
login
to post a comment