A simple, yet effecitive queue system, to prevent your ips/webhooks from being rate limited on high output systems.
DXN-DWHQ (Devoplx Discord WebHook Queue) system, uses a simple method to prevent webhooks/ips from being rate limited.
By only allowing webhooks being sent every 3s, it ensures it fits within discord rate limits.
All you have to do, is replace your normal webhooks with the url that follows the api refernce down below.
If you want to host it, we recommand and use heztner If you wish, we can setup and host it for you, for a small fee of 5$ a month, contact us at our discord: discord
it will work with 99% pre existing systems that use discord webhoo, all you got to do is put your url, example:
url = "http://discord.com/api/webhook/xxxxx/yyyyy"
x = id y = token
with = "yoursite.com/webhook/addqueue/:license/:id/:token
NOTICE: We understand that discord ratelimits are 30 Msg / per Channel / Per 1 Min, then 50 Messages / per 1 Sec per IP. However with this simple system design, we do not track each channel. (We are open to any pull requests, adding this system, but at this time, we will not be adding it)
POST /webhook/addqueue/:license/:id/:token
URL PARAMS:
Parameter | Type | Description |
---|---|---|
license |
string |
Required. The license Key |
id |
string |
Required. The Discord Webhook ID |
token |
string |
Required. The Discord Webhook Token |
BODY:
Parameter | Type | Description |
---|---|---|
discord webhook schema |
string |
Required. Discord docs |
POST /queue/stats/:license
URL PARAMS:
Parameter | Type | Description |
---|---|---|
license |
string |
Required. The license Key |
Backed By @Devoplx Company
To deploy this project run
the Dockerfile provided in the root of the project. Once started you can go to localhost:4011
If you want to manually do it, then you can do:
npm i
npm run build
npm run start
then you can go to localhost:4011
We understand, discord rate limit per channel is 30Msg/60 which would only require a 2s deley, we want to prevent your systems from being rate limited.
To run this project, you will need to add the following environment variables to your .env file
LICENSE
LOGGER_SECRET
LOGGER_URL
PORT
MOGNODB_URL
- Work on making it multi noded (allow you to scale it up)
This project is used by the following companies:
- Devoplx
For support, join our discord