Slack v0.9.2 Slack.Bot

This module is used to spawn bots and is used to manage the connection to Slack while delegating events to the specified bot module.

Summary

Functions

Connects to Slack and delegates events to bot_handler

Functions

start_link(bot_handler, initial_state, token, options \\ %{})

Connects to Slack and delegates events to bot_handler.

Options

  • keepalive - How long to wait for the connection to respond before the client kills the connection.

Example

Slack.Bot.start_link(MyBot, [1,2,3], “abc-123”)