Compare commits
2 Commits
e1b575ecc8
...
b7ecbe2630
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b7ecbe2630 | ||
![]() |
3b90aa1d49 |
@ -40,7 +40,6 @@ class LolScraper():
|
|||||||
|
|
||||||
new += 1
|
new += 1
|
||||||
match = connection.get(f'/lol-match-history/v1/games/{i["gameId"]}').json()
|
match = connection.get(f'/lol-match-history/v1/games/{i["gameId"]}').json()
|
||||||
print(match)
|
|
||||||
parsed_match = {
|
parsed_match = {
|
||||||
"game_id": match["gameId"],
|
"game_id": match["gameId"],
|
||||||
"participants": {
|
"participants": {
|
||||||
@ -160,7 +159,6 @@ class LolScraper():
|
|||||||
# Post the new games to your server(change in config.json)
|
# Post the new games to your server(change in config.json)
|
||||||
for i in games:
|
for i in games:
|
||||||
req = requests.post(f"{self.URL}/games/", json=i)
|
req = requests.post(f"{self.URL}/games/", json=i)
|
||||||
print(req.content)
|
|
||||||
if req.status_code == 500:
|
if req.status_code == 500:
|
||||||
print("Serverside error! Contact maintainer!")
|
print("Serverside error! Contact maintainer!")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
@ -31,7 +31,7 @@ async def begin_game(ctx):
|
|||||||
"""Tries to start a fair game: !begin_game"""
|
"""Tries to start a fair game: !begin_game"""
|
||||||
target = Target(ctx, bot)
|
target = Target(ctx, bot)
|
||||||
|
|
||||||
players = await Target.ready()
|
players = await target.ready()
|
||||||
if not players:
|
if not players:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user