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 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: