Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 467 Bytes

File metadata and controls

5 lines (3 loc) · 467 Bytes

slow-mode

Enforces a minimum interval (2 seconds) between consecutive messages from the same user. Tracks the last-message timestamp per user in memory and drops messages that arrive too soon.

Demonstrates: filter.drop(reason) to reject a message before it reaches notifications or other plugins, in-memory filter state (reset on reload, the right behavior for a soft slow-mode), the difference between filter.modify (rewrite) and filter.drop (reject).