View Source TMI.Handler behaviour (tmi.ex v0.6.1)

Handler behaviour for TMI.

Link to this section Summary

Link to this section Callbacks

Link to this callback

handle_action(message, sender, channel)

View Source

Specs

handle_action(
  message :: String.t(),
  sender :: String.t(),
  channel :: String.t()
) :: any()
Link to this callback

handle_action( message, sender, channel, map )

View Source

Specs

handle_action(
  message :: String.t(),
  sender :: String.t(),
  channel :: String.t(),
  map()
) :: any()
Link to this callback

handle_connected(server, port)

View Source

Specs

handle_connected(server :: String.t(), port :: integer()) :: any()

Specs

handle_disconnected() :: any()

Specs

handle_join(channel :: String.t()) :: any()
Link to this callback

handle_join(channel, user)

View Source

Specs

handle_join(channel :: String.t(), user :: String.t()) :: any()
Link to this callback

handle_kick(channel, kicker)

View Source

Specs

handle_kick(channel :: String.t(), kicker :: String.t()) :: any()
Link to this callback

handle_kick(channel, user, kicker)

View Source

Specs

handle_kick(channel :: String.t(), user :: String.t(), kicker :: String.t()) ::
  any()

Specs

handle_logged_in() :: any()
Link to this callback

handle_login_failed(reason)

View Source

Specs

handle_login_failed(reason :: atom()) :: any()
Link to this callback

handle_mention(message, sender, channel)

View Source

Specs

handle_mention(
  message :: String.t(),
  sender :: String.t(),
  channel :: String.t()
) :: any()
Link to this callback

handle_message(message, sender, channel)

View Source

Specs

handle_message(
  message :: String.t(),
  sender :: String.t(),
  channel :: String.t()
) :: any()
Link to this callback

handle_message( message, sender, channel, tags )

View Source

Specs

handle_message(
  message :: String.t(),
  sender :: String.t(),
  channel :: String.t(),
  tags :: map()
) :: any()

Specs

handle_part(channel :: String.t()) :: any()
Link to this callback

handle_part(channel, user)

View Source

Specs

handle_part(channel :: String.t(), user :: String.t()) :: any()
Link to this callback

handle_unrecognized(msg)

View Source

Specs

handle_unrecognized(msg :: any()) :: any()
Link to this callback

handle_unrecognized(msg, tags)

View Source

Specs

handle_unrecognized(msg :: any(), tags :: map()) :: any()
Link to this callback

handle_whisper(message, sender)

View Source

Specs

handle_whisper(message :: String.t(), sender :: String.t()) :: any()
Link to this callback

handle_whisper(message, sender, tags)

View Source

Specs

handle_whisper(message :: String.t(), sender :: String.t(), tags :: map()) ::
  any()