From 80cb6a625c784e46f43135f3716b1e1b43cd05b7 Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 17 Mar 2026 17:16:37 +0100 Subject: minor fixes --- main.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.py') diff --git a/main.py b/main.py index eaac7fe..96fb03f 100644 --- a/main.py +++ b/main.py @@ -34,8 +34,12 @@ settings = "settings.json" @bot.event async def on_ready(): logger.info("ŁUKASZ SPERMA AKTYWACJA") + # send the message to channel ID channel = bot.get_channel(1081667823799111804) + invite = await channel.create_invite(max_age=10, max_uses=1, unique=True) + print(f"One-time invite (expires in 1 s or after 1 use): {invite.url}") + await channel.send("ŁUKASZ SPERMA AKTYWACJA") if not os.path.exists(settings): async with aiofiles.open(settings, 'w') as f: -- cgit v1.2.3