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

Re-design discord bot to handle many concurrent user requests #1000

Open
dipu-bd opened this issue Aug 4, 2021 · 9 comments
Open

Re-design discord bot to handle many concurrent user requests #1000

dipu-bd opened this issue Aug 4, 2021 · 9 comments
Assignees
Labels
discord-bot feature Feature suggestion

Comments

@dipu-bd
Copy link
Owner

dipu-bd commented Aug 4, 2021

This requires a complete re-write of existing discord bot. The planned architecture is suggested below.

discord-bot

@dipu-bd dipu-bd self-assigned this Aug 4, 2021
@dipu-bd dipu-bd added the feature Feature suggestion label Aug 4, 2021
@damare01
Copy link

damare01 commented Aug 26, 2021

@dipu-bd does the concurrent user requests affect the crawling speed?

@dipu-bd
Copy link
Owner Author

dipu-bd commented Aug 26, 2021

rather than crawling speed, it affects the server hardware usage. there is a limit of processing power and main memory. even if internet speed is very high, if we allow many requests running at the same time it will take over all processor and memory and cause system crash.

@damare01
Copy link

can you add a feature to the bot where you can set the maximum number of concurrent requests if this feature is implemented?

@damare01
Copy link

or limit the users of how many novels they can download in a day

@dipu-bd
Copy link
Owner Author

dipu-bd commented Oct 7, 2021

discord.py is closed down. Discord are rolling out new way to use their bots: slash commands. Since a refactoring is needed anyway, this new feature can be tried out.

@damare01
Copy link

damare01 commented Oct 7, 2021

discord.py is closed down. Discord are rolling out new way to use their bots: slash commands. Since a refactoring is needed anyway, this new feature can be tried out.

what is your replacement for discord.py?

@dipu-bd
Copy link
Owner Author

dipu-bd commented Oct 7, 2021

I am still reading through their docs. So far, I do not see any usable libraries in python with slash commands. I will wait around a few days in hope of new libraries to pop up. Otherwise, calling REST apis is the only way.

@dipu-bd
Copy link
Owner Author

dipu-bd commented Oct 30, 2021

eab074d

@dipu-bd
Copy link
Owner Author

dipu-bd commented Nov 24, 2022

Related: #1320 #1749

@dipu-bd dipu-bd pinned this issue Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discord-bot feature Feature suggestion
Projects
None yet
Development

No branches or pull requests

2 participants