SimplerSlack v0.0.4 SimplerSlack exception

Used to create a basic slack bot which can receive user_typing or message events. Can also send messages back.

An example would be

  defmodule SimpleBot do
    use SimplerSlack

    def slack_message(%{channel: channel, token: token, user: _user} = state) do
    IO.inspect state
    send_message("Hey, i got a message", channel, token)
  end

  # nothing is a function provided by SimplerSlack
  # thought it looked better than returning nil
  def slack_user_typing(_), do: nothing

  SimpleBot.start_link "the-token"

Summary

Functions

Callback implementation for Exception.exception/1

Callback implementation for Exception.message/1

Functions

exception(msg)
exception(String.t) :: Exception.t
exception(Keyword.t) :: Exception.t

Callback implementation for Exception.exception/1.

message(exception)
message(Exception.t) :: String.t

Callback implementation for Exception.message/1.