View Source Slack.Bot behaviour (Slack Elixir v0.1.0)

The slack bot.

Summary

Callbacks

Handle the event from Slack.

Callbacks

Link to this callback

handle_event(type, payload)

View Source
@callback handle_event(type :: String.t(), payload :: map()) ::
  :ok | {:reply, reply :: keyword() | map()}

Handle the event from Slack.

The return values will be either: