View Source Slack.Bot behaviour (Slack Elixir v0.1.0)
The slack bot.
Summary
Callbacks
Handle the event from Slack.
Callbacks
@callback handle_event(type :: String.t(), payload :: map()) :: :ok | {:reply, reply :: keyword() | map()}
Handle the event from Slack.
The return values will be either:
:ok- No-op, willackimmediately.{:reply, reply}- wherereplycan be a map or keyword with these arguments: https://api.slack.com/methods/chat.postMessage#args