dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
683 stars 162 forks source link

Bot takes around 3 minutes to log in #355

Closed rayzchen closed 2 years ago

rayzchen commented 2 years ago

Summary

After running the script, bot.start takes 3 minutes to run

Reproduction Steps

Run any selfbot script

Code

from discord.ext import commands

bot = commands.Bot(command_prefix="\a")
bot.remove_command("help")

@bot.event
async def on_ready():
    print("Bot is ready")

bot.run("token")


### Expected Results

Bot prints ready in a few seconds

### Actual Results

Have to wait 3 minutes before anything actually happens

### System Information

- Python v3.10.5-final
- discord.py-self v1.9.2-final      
- aiohttp v3.7.4.post0
- system info: Windows 10 10.0.19044

### Checklist

- [X] I have searched the open issues for duplicates.
- [X] I have shared the entire traceback.
- [X] I am using a user token (and it isn't visible in the code).

### Additional Information

_No response_
dolfies commented 2 years ago

Pass guild_subscription_options=discord.GuildSubscriptionOptions.off() to your Client initialization, or optionally install the alpha.