1
1
mirror of https://gitlab.com/ceda_ei/Quadnite-Bot synced 2025-05-20 18:36:53 +02:00
Quadnite-Bot/README.md
Sphericalkat 8274ab0980
feat: add rate limiter middleware
Signed-off-by: Sphericalkat <me@kat.bio>
2024-09-30 10:39:07 +05:30

682 B

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