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