aboutsummaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorsalmonik <raisersoft@proton.me>2026-03-17 17:16:37 +0100
committersalmonik <raisersoft@proton.me>2026-03-17 17:16:37 +0100
commit80cb6a625c784e46f43135f3716b1e1b43cd05b7 (patch)
tree9ce6bf6f88597922fc43cb5d0c16c128071f80d5 /main.py
parentfix tts (diff)
downloadsenator-sperma-80cb6a625c784e46f43135f3716b1e1b43cd05b7.tar.gz
senator-sperma-80cb6a625c784e46f43135f3716b1e1b43cd05b7.zip
minor fixes
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 4 insertions, 0 deletions
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"
34@bot.event 34@bot.event
35async def on_ready(): 35async def on_ready():
36 logger.info("ŁUKASZ SPERMA AKTYWACJA") 36 logger.info("ŁUKASZ SPERMA AKTYWACJA")
37
37 # send the message to channel ID 38 # send the message to channel ID
38 channel = bot.get_channel(1081667823799111804) 39 channel = bot.get_channel(1081667823799111804)
40 invite = await channel.create_invite(max_age=10, max_uses=1, unique=True)
41 print(f"One-time invite (expires in 1 s or after 1 use): {invite.url}")
42
39 await channel.send("ŁUKASZ SPERMA AKTYWACJA") 43 await channel.send("ŁUKASZ SPERMA AKTYWACJA")
40 if not os.path.exists(settings): 44 if not os.path.exists(settings):
41 async with aiofiles.open(settings, 'w') as f: 45 async with aiofiles.open(settings, 'w') as f: