diff options
| author | salmonik <raisersoft@proton.me> | 2026-03-17 17:16:37 +0100 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-03-17 17:16:37 +0100 |
| commit | 80cb6a625c784e46f43135f3716b1e1b43cd05b7 (patch) | |
| tree | 9ce6bf6f88597922fc43cb5d0c16c128071f80d5 /main.py | |
| parent | fix tts (diff) | |
| download | senator-sperma-80cb6a625c784e46f43135f3716b1e1b43cd05b7.tar.gz senator-sperma-80cb6a625c784e46f43135f3716b1e1b43cd05b7.zip | |
minor fixes
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -34,8 +34,12 @@ settings = "settings.json" | |||
| 34 | @bot.event | 34 | @bot.event |
| 35 | async def on_ready(): | 35 | async 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: |
