Ceda EI
cd374090f2
feat: add rate limiter middleware See merge request ceda_ei/Quadnite-Bot!4 |
||
---|---|---|
commands | ||
data | ||
static | ||
.eslintrc.js | ||
.gitignore | ||
LICENSE | ||
README.md | ||
bot.js | ||
package-lock.json | ||
package.json |
README.md
Quadnite-Bot
Source code for @quadnite_bot
Running your own instance
Quadnite bot depends on Ugoki for providing roleplay gifs. Once you have an instance of Ugoki (and optionally Ugoki Frontend) running:
- Clone this repo
npm install
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