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-04 23:16:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
33cca4ea508c12f82997ea7887da1f592e38e469
33cca4ea
1 parent
eb71bd9a
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
app.js
app.js
View file @
33cca4e
...
...
@@ -86,13 +86,7 @@ function handleEvent(event) {
// ignore non-text-message event
return
Promise
.
resolve
(
null
);
}
if
(
event
.
type
==
'message'
&&
event
.
message
.
type
==
'image'
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
upload
=
multer
({
dest
:
'photo/'
})
upload
.
single
(
event
.
message
.
image
);
})
}
if
(
event
.
type
==
'message'
&&
event
.
message
.
type
==
'text'
)
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
//언어 감지 option
...
...
Please
register
or
login
to post a comment