Compare commits

...

2 Commits

Author SHA1 Message Date
confestim
b7ecbe2630 Merge branch 'main' of https://git.confest.im/boyan_k/custoMM 2023-05-07 23:31:25 +02:00
confestim
3b90aa1d49 Tidied 2023-05-07 23:31:22 +02:00
2 changed files with 1 additions and 3 deletions

View File

@ -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()

View File

@ -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