Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rate limit #19

Open
PsychoJS opened this issue May 31, 2020 · 7 comments
Open

Rate limit #19

PsychoJS opened this issue May 31, 2020 · 7 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested

Comments

@PsychoJS
Copy link

Hey
when you start dmall at large servers(+1000 guild members), after reaching to 1000 users, it will be disconnected and token has been reset...

any solution?

@alexlyee alexlyee pinned this issue Jun 1, 2020
@alexlyee
Copy link
Owner

alexlyee commented Jun 1, 2020

Thank you for being the first to properly document this on the issues form! I was made aware of this recently. Could you or anyone provide an error code after the bot reaches that user limit? That would help immensely. Have a great day!

@alexlyee alexlyee added bug Something isn't working help wanted Extra attention is needed question Further information is requested labels Jun 1, 2020
@PsychoJS
Copy link
Author

PsychoJS commented Jun 1, 2020

@alexlyee i think this thread explain everything...
Session Start Rate Limit

@alexlyee
Copy link
Owner

alexlyee commented Jun 1, 2020

Thanks for this, I'll look into it soon.

@shinebacksoftware
Copy link

How is the resolution to this looking?

@SentinelJs
Copy link

it doesnt have answer to fix this problem.
cause discord is catch and banned bot

@alexlyee
Copy link
Owner

@KafJS if you’re trying to say that I don’t have a “solution” to this issue, then yes,, I suppose that is why the issue is open, and it is labeled with “help wanted”. However, as time as passed with this issue, it is becoming increasingly clear to me that this likely is caused by people misusing the delay on the bot, as my latest version of the code on my computer at home is being tested on servers with over 8000 members.

@legendhimself
Copy link

@alexlyee If I were you, I would have added a database, probably a local db where the bot can store all the ids of the members who have successfully been dmed and then after like 800-1200 dm. Have the bot do nothing (promise paused) ie stop sending dms and store the date object in db to resume the promise for dming the rest of the users, and for the ids in the db, you can use it to filter out the member array.
Make it a long process with multiple breaks so that discord api cannot see the peak in rate limits caused by the bot. Which would prevent bots from getting Quarantined or even banned from Discord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants