1
1
mirror of https://gitlab.com/ceda_ei/Quadnite-Bot synced 2026-05-06 05:40:04 +02:00

feat: add rate limiter middleware

Signed-off-by: Sphericalkat <me@kat.bio>
This commit is contained in:
Sphericalkat
2024-09-30 10:39:07 +05:30
parent 80a0dbd2d3
commit 8274ab0980
4 changed files with 23 additions and 1 deletions

View File

@@ -13,4 +13,6 @@ roleplay gifs. Once you have an instance of Ugoki (and optionally
- `export BOT_API_KEY="your-token-for-bot"`
- `export FEEDBACK_ID="chat-id-where-feedback-is-forwarded-to"`
- `export UGOKI_ROOT="https://root.of.ugoki.api/server/"`
- `export RATE_TIMEFRAME=5000 # rate limit time interval in milliseconds`
- `export RATE_LIMIT=5 # number of requests allowed in the timeframe`
- `npm start`