The comprehensive toolbelt for working with Slack in Elixir.
- Add
slackkit
to your list of dependencies inmix.exs
:
defp deps do
[slackkit: "~> 0.1"]
end
- Ensure slackkit is started before your application:
def application do
[applications: [:slackkit]]
end
Receiving data:
Slackkit.Hook
for monitoring for specific public messages with Outgoing WebhooksSlackkit.Command
for receiving to explicit user instructions via Slash Commands
Sending data:
Slackkit.Actions
for triggering high-level common actions within SlackSlackkit.API
for sending general instructions to slack via the Web APISlackkit.Message
for authoring simple or richly-formatted messages via Incoming Webhooks
Composing messages:
Slackkit.Message.Sigils
Message DSLSlackkit.Message.Builder
Message DSLSlackkit.Reference
for dealing with Channel and User representationsSlackkit.Attachment
attaching payloads to MessagesSlackkit.Button
for building Interactive Button workflowsSlackkit.Emoji
for emoji
Interacting with data:
Slackkit.User
for taking actions on behalf of a UserSlackkit.Bot
for building Bots that can notice any Slack eventSlackkit.Interaction
for responding to Interactive Button input
Utilities:
Slackkit.Endpoint
for creating HTTP endpoints for receiving Slack dataSlackkit.Socket
for establishing websocket connections with the Slack RTM APISlackkit.Auth
for performing OAuth handshakes