aboutsummaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/main.py b/main.py
index 73ad94e..25b7b33 100644
--- a/main.py
+++ b/main.py
@@ -29,10 +29,7 @@ logger = logging.getLogger(__name__)
29loop = asyncio.new_event_loop() 29loop = asyncio.new_event_loop()
30asyncio.set_event_loop(loop) 30asyncio.set_event_loop(loop)
31 31
32intents = discord.Intents.default() 32intents = discord.Intents.all()
33intents.voice_states = True
34intents.guilds = True
35intents.messages = True
36bot = commands.Bot(intents=intents, loop=loop) 33bot = commands.Bot(intents=intents, loop=loop)
37 34
38settings = "settings.json" 35settings = "settings.json"
@@ -43,8 +40,6 @@ async def on_ready():
43 40
44 # send the message to channel ID 41 # send the message to channel ID
45 channel = bot.get_channel(1081667823799111804) 42 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 43
49 await channel.send("ŁUKASZ SPERMA AKTYWACJA") 44 await channel.send("ŁUKASZ SPERMA AKTYWACJA")
50 45