|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
Interface used to implement a rate-limit on the number of messages the bot may send to any IRC server. More...
Public Member Functions | |
| canSend () | |
Interface used to implement a rate-limit on the number of messages the bot may send to any IRC server.
Definition at line 28 of file RateLimiter.php.
| Erebot\Interfaces\RateLimiter::canSend | ( | ) |
Decides whether a message can be sent or not, using whatever strategy deemed useful. Classes implementing this interface are responsible for keeping track of the measurements required for their proper functioning.
| bool | true if the message can be sent, false otherwise. |