diff options
Diffstat (limited to '')
| -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: |
