Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eriklax committed Oct 10, 2022
1 parent adc1e56 commit 56d32d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -44,6 +44,8 @@ If `count` is greater than zero, it will increase the rate and return `true`, or
**Example**

```
import { rate } from "extras://rate-redis";
if (rate("outbound", $connection["auth"]["username"], 3, 60) == false) {
Reject("User is only allowed to send 3 messages per minute");
}
Expand Down

0 comments on commit 56d32d2

Please sign in to comment.