aboutsummaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
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 f1cbff7..73ad94e 100644
--- a/main.py
+++ b/main.py
@@ -40,8 +40,12 @@ settings = "settings.json"
40@bot.event 40@bot.event
41async def on_ready(): 41async 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