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-11-23 20:03:26 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aef829bcd3bf28e9cfaee00bf6d38efa4342de09
aef829bc
1 parent
97f50f06
search_option2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
app.js
app.js
View file @
aef829b
...
...
@@ -71,10 +71,9 @@ function handleEvent(event) {
else
if
(
event
.
message
.
text
.
substr
(
0
,
4
)
==
"!검색 "
){
return
new
Promise
(
function
(
resolve
,
reject
)
{
var
text_len
=
event
.
message
.
text
;
search_api_url
+=
'?query='
+
event
.
message
.
text
.
substr
(
4
,
text_len
-
4
)
+
'&display=1'
;
var
search_options
=
{
url
:
search_api_url
,
form
:
{
'query'
:
event
.
message
.
text
.
substr
(
4
,
text_len
-
4
),
'display'
:
1
},
headers
:
{
'X-Naver-Client-Id'
:
client_id
,
'X-Naver-Client-Secret'
:
client_secret
}
};
request
.
get
(
search_options
,
function
(
error
,
response
,
body
){
...
...
Please
register
or
login
to post a comment