View Source TMI.WhisperServer (tmi.ex v0.7.0)
A GenServer for Sending whispers at a specified rate.
Twitch whispers rate limits:
If the Whisper rate limits are exceeded, an application cannot send Whispers for 24 hours.
| Limit | Applies to
|-------------------------------------|-----------------------
| 3 per second, up to 100 per minute, | All Twitch accounts
| for 40 accounts per day |
Summary
Functions
Add a whisper to the outbound message queue.
Returns a specification to start this module under a supervisor.
Invoked to handle asynchronous cast/2
messages.
Invoked to handle all other messages.
Invoked when the server is started. start_link/3
will block until it
returns.
Generate the bot specific module name.
Start the message server. Usually because of a JOIN
.
Stop the message server. Usually because of a PART
.
Functions
Add a whisper to the outbound message queue.
Returns a specification to start this module under a supervisor.
See Supervisor
.
Invoked to handle asynchronous cast/2
messages.
Invoked to handle all other messages.
For example calling Process.send_after(self(), :foo, 1000)
would send :foo
after one second, and we could match on that here.
Invoked when the server is started. start_link/3
will block until it
returns.
Generate the bot specific module name.
@spec start_link({module(), TMI.Conn.t()}) :: GenServer.on_start()
Start the message server. Usually because of a JOIN
.
@spec stop(module()) :: :ok
Stop the message server. Usually because of a PART
.