Skip to content

Commit

Permalink
Added functionality to edit the event once the tournament has been cr…
Browse files Browse the repository at this point in the history
…eated
  • Loading branch information
FirePlank committed Nov 27, 2023
1 parent 2b641ba commit fc1223e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bot/extensions/chess/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ async def check_events(self):
allowed_mentions=discord.AllowedMentions(roles=True),
)

await event.edit(
name=f"Weekly {time_control[0]} Tournament",
location=f"https://lichess.org/swiss/{tournament['id']}",
)

await asyncio.sleep(until)
while True:
async with http.session.get(
Expand Down

0 comments on commit fc1223e

Please sign in to comment.