Slink.ExampleBot (Slink v0.1.0)

Copy Markdown View Source

A tiny example bot. Replies to app_mention events and logs everything else.

Run it in IEx (Socket Mode):

iex -S mix
iex> {:ok, _} = Slink.SocketMode.start_link(
...>   module: Slink.ExampleBot,
...>   app_token: System.fetch_env!("SLACK_APP_TOKEN"),
...>   bot_token: System.fetch_env!("SLACK_BOT_TOKEN"))