Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박찬수
/
enjoy_soccer
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
박찬수
2022-06-09 12:03:41 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
739b31e2935c5f1658c18c9d2074039a05372a43
739b31e2
1 parent
62decf7b
초기화 기능 수정 및 득점 순위 기능 수정
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
push.js
reply.js
push.js
View file @
739b31e
...
...
@@ -4,7 +4,7 @@ const TARGET_URL = 'https://api.line.me/v2/bot/message/push'
const
MULTI_TARGET_URL
=
'https://api.line.me/v2/bot/message/multicast'
const
BROAD_TARGET_URL
=
'https://api.line.me/v2/bot/message/broadcast'
const
TOKEN
=
'XOyIf8jsoQKq3b1zqxE4wawAoFU2Hz433AO3w8/ye+i6+2KrXpyfFwY0Dk/xhHQLPgtgPTiEP/m4IRW+SlVhdtzfH6c0Lfdw6nJ95QOugHfNWfviAmn5Uojh8LQJeAy21bvaNMCy11f+qgLSRnXmCgdB04t89/1O/w1cDnyilFU='
const
USER_ID
=
'
사
Uc4258407a7677769f74ba184ec036651'
const
USER_ID
=
'Uc4258407a7677769f74ba184ec036651'
//Single User
// request.post(
...
...
reply.js
View file @
739b31e
...
...
@@ -190,7 +190,7 @@ function SelectLeagueInfo(eventObj, inputNum){
break
;
case
2
:
// 득점 순위
soccerAPI
.
TopScorer
(
currentLeagueID
,
function
(
body
){
let
standing
Json
=
JSON
.
parse
(
body
);
let
topScorer
Json
=
JSON
.
parse
(
body
);
let
valueText
=
""
;
for
(
var
i
=
0
;
i
<
20
;
i
++
){
valueText
+=
(
i
+
1
).
toString
()
+
"|"
+
topScorerJson
.
response
[
i
].
player
.
name
+
"|"
+
topScorerJson
.
response
[
i
].
statistics
[
0
].
team
.
name
+
"|"
+
topScorerJson
.
response
[
i
].
statistics
[
0
].
games
.
appearences
+
"|"
+
topScorerJson
.
response
[
i
].
statistics
[
0
].
goals
.
total
+
'\n'
;
...
...
@@ -201,7 +201,7 @@ function SelectLeagueInfo(eventObj, inputNum){
break
;
case
3
:
// 도움 순위
soccerAPI
.
TopAssist
(
currentLeagueID
,
function
(
body
){
let
standing
Json
=
JSON
.
parse
(
body
);
let
topAssist
Json
=
JSON
.
parse
(
body
);
let
valueText
=
""
;
for
(
var
i
=
0
;
i
<
20
;
i
++
){
valueText
+=
(
i
+
1
).
toString
()
+
"|"
+
topAssistJson
.
response
[
i
].
player
.
name
+
"|"
+
topAssistJson
.
response
[
i
].
statistics
[
0
].
team
.
name
+
"|"
+
topAssistJson
.
response
[
i
].
statistics
[
0
].
games
.
appearences
+
"|"
+
topAssistJson
.
response
[
i
].
statistics
[
0
].
goals
.
assists
+
'\n'
;
...
...
Please
register
or
login
to post a comment