From fc1223ef8e1618b38af4c5843f4c292b9f6c8ec1 Mon Sep 17 00:00:00 2001 From: FirePlank <44502537+FirePlank@users.noreply.github.com> Date: Mon, 27 Nov 2023 17:04:40 +0200 Subject: [PATCH] Added functionality to edit the event once the tournament has been created --- bot/extensions/chess/tasks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bot/extensions/chess/tasks.py b/bot/extensions/chess/tasks.py index 2c0000b0..aa961a49 100644 --- a/bot/extensions/chess/tasks.py +++ b/bot/extensions/chess/tasks.py @@ -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(