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 21:29:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
44ee5a5b1043b53347e16c5d740c2fac9e73add8
44ee5a5b
1 parent
da7c5b3f
ud
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
concert.js
concert.js
View file @
44ee5a5
...
...
@@ -105,7 +105,8 @@ function handleEvent(event) {
});
}
else
if
(
0
<
event
.
message
.
text
.
substr
(
0
,
2
)
*
1
<
27
){
else
if
(
0
<
event
.
message
.
text
.
substring
(
0
,
2
)
*
1
<
27
){
var
selectnum
=
(
event
.
message
.
text
.
substr
(
0
,
2
)
*
1
);
...
...
@@ -143,15 +144,7 @@ function handleEvent(event) {
});
})};
app
.
post
(
'/webhook'
,
line
.
middleware
(
config
),
(
req
,
res
)
=>
{
console
.
log
(
res
.
statusCode
);
Promise
.
all
(
req
.
body
.
events
.
map
(
handleEvent2
))
.
then
((
result
)
=>
res
.
json
(
result
))
.
catch
((
err
)
=>
{
console
.
log
(
err
);
})
});
return
new
Promise
(
function
(
resolve
,
reject
)
{
//언어 감지 option
var
detect_options
=
{
...
...
Please
register
or
login
to post a comment