Blur v0.2.1-beta3 Blur View Source

Access your bot through Blur

Client

Handlers

  • Login on_logon -> join_channels
  • Connection %ConnState{} on_connection -> login on_disconnection -> logoff
  • Message pool
  • Channels on_join -> add_channel [Channel, Channel]
  • Users on_names -> add_users on_user_join -> add_user on_part -> remove_user [User, User]

Link to this section Summary

Functions

Join a channel on the client IRC connection.

Leave a channel on the client IRC connection.

Say a message to the channel.

Get token from the environmental variables.

Link to this section Functions

Specs

join(client :: GenServer.server(), channel :: binary()) ::
  :ok | {:error, atom()}

Join a channel on the client IRC connection.

Examples

Blur.join :twitch, "#channel" :ok

Specs

leave(client :: GenServer.server(), channel :: binary()) ::
  :ok | {:error, atom()}

Leave a channel on the client IRC connection.

Examples

Blur.leave :twitch, "#channel"

Link to this function

say(client, channel, message)

View Source

Say a message to the channel.

Examples

Blur.say :twitch, "adattape"

Specs

token() :: nil | binary()

Get token from the environmental variables.