Hanabi v0.0.2 Hanabi.Dispatch View Source

Send messages to IRC/Hanabi clients.

Link to this section Summary

Functions

Broadcast a message to multiple users

Broadcast a message to all channels containing the user

Send a “reply” (including a code) to an IRC or Hanabi client

Send a message to an IRC or Hanabi client

Link to this section Functions

Broadcast a message to multiple users.

Example

users = [{:irc, "lambda", #Port<0.6628>}, {:irc, "fnux", #Port<0.6607>}]
Hanabi.Dispatch.broadcast(users, "Hello world!")
Link to this function broadcast_for(user_key, msg) View Source

Broadcast a message to all channels containing the user.

Link to this function reply(client, code, msg) View Source

Send a “reply” (including a code) to an IRC or Hanabi client.

Send a message to an IRC or Hanabi client.