Summary
Implement per-user rate limiting to prevent abuse, even from allowed users.
Implementation Options
- In-memory - Simple Map with timestamps, resets on restart
- Redis-based - Persistent across restarts, uses existing Redis connection
Suggested Behavior
- Track request timestamps per Discord user ID
- Configurable via env:
RATE_LIMIT_REQUESTS=5, RATE_LIMIT_WINDOW_MS=60000
- Default: 5 requests per 60 seconds
- Respond with rate limit message when exceeded
Priority
Medium - implement after user/channel allowlist (#1)
Related
Summary
Implement per-user rate limiting to prevent abuse, even from allowed users.
Implementation Options
Suggested Behavior
RATE_LIMIT_REQUESTS=5,RATE_LIMIT_WINDOW_MS=60000Priority
Medium - implement after user/channel allowlist (#1)
Related