diff options
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 7 |
1 files changed, 1 insertions, 6 deletions
| @@ -29,10 +29,7 @@ logger = logging.getLogger(__name__) | |||
| 29 | loop = asyncio.new_event_loop() | 29 | loop = asyncio.new_event_loop() |
| 30 | asyncio.set_event_loop(loop) | 30 | asyncio.set_event_loop(loop) |
| 31 | 31 | ||
| 32 | intents = discord.Intents.default() | 32 | intents = discord.Intents.all() |
| 33 | intents.voice_states = True | ||
| 34 | intents.guilds = True | ||
| 35 | intents.messages = True | ||
| 36 | bot = commands.Bot(intents=intents, loop=loop) | 33 | bot = commands.Bot(intents=intents, loop=loop) |
| 37 | 34 | ||
| 38 | settings = "settings.json" | 35 | settings = "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 | ||
