Skip to content

Add rate limiting per user #3

@alexknowshtml

Description

@alexknowshtml

Summary

Implement per-user rate limiting to prevent abuse, even from allowed users.

Implementation Options

  1. In-memory - Simple Map with timestamps, resets on restart
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions