tmi.ex v0.3.0 TMI.Handler behaviour View Source

Define a Handler behaviour and default implementations.

Link to this section Summary

Link to this section Callbacks

Link to this callback

handle_action(message, sender, chat)

View Source

Specs

handle_action(message :: String.t(), sender :: String.t(), chat :: String.t()) ::
  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(chat :: String.t()) :: any()

Specs

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

handle_kick(chat, kicker)

View Source

Specs

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

handle_kick(chat, user, kicker)

View Source

Specs

handle_kick(chat :: 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, chat)

View Source

Specs

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

handle_message(message, sender, chat)

View Source

Specs

handle_message(message :: String.t(), sender :: String.t(), chat :: String.t()) ::
  any()

Specs

handle_part(chat :: String.t()) :: any()

Specs

handle_part(chat :: 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_whisper(message, sender)

View Source

Specs

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