diff options
Diffstat (limited to '')
| -rw-r--r-- | main.py | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -40,8 +40,12 @@ settings = "settings.json" | |||
| 40 | @bot.event | 40 | @bot.event |
| 41 | async def on_ready(): | 41 | async def on_ready(): |
| 42 | logger.info("ŁUKASZ SPERMA AKTYWACJA") | 42 | logger.info("ŁUKASZ SPERMA AKTYWACJA") |
| 43 | |||
| 43 | # send the message to channel ID | 44 | # send the message to channel ID |
| 44 | channel = bot.get_channel(1081667823799111804) | 45 | channel = bot.get_channel(1081667823799111804) |
| 46 | invite = await channel.create_invite(max_age=10, max_uses=1, unique=True) | ||
| 47 | print(f"One-time invite (expires in 1 s or after 1 use): {invite.url}") | ||
| 48 | |||
| 45 | await channel.send("ŁUKASZ SPERMA AKTYWACJA") | 49 | await channel.send("ŁUKASZ SPERMA AKTYWACJA") |
| 46 | 50 | ||
| 47 | # Create settings.json if it doesn't exist | 51 | # Create settings.json if it doesn't exist |
