Skip to content

⚙️ feat: Add Command Rate Limiting #48

@evolvewithevan

Description

@evolvewithevan

⚙️ feat: Add Command Rate Limiting

Description:
Implement rate limiting to prevent abuse or spam of bot commands. This will ensure more stable operation and discourage rapid or repeated triggering of commands.

Goals:

  • Limit how many commands a user can run in a given timeframe (e.g. 5 commands per 10 seconds).
  • Possibly differentiate between regular users and admins/mods.
  • Return a friendly error message when a user is rate-limited.

Checklist:

  • Define rate-limiting strategy (per-user, global, per-command, etc.)
  • Configurable limit values (e.g. via YAML or env vars)
  • Implement rate-limiting middleware or decorator
  • Add clear error message for rate-limited users
  • Tests to verify limits are enforced correctly

Priority: High

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions