The comprehensive toolbelt for working with Slack in Elixir.
- Add
slackkitto 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]]
endReceiving data:
Slackkit.Hookfor monitoring for specific public messages with Outgoing WebhooksSlackkit.Commandfor receiving to explicit user instructions via Slash Commands
Sending data:
Slackkit.Actionsfor triggering high-level common actions within SlackSlackkit.APIfor sending general instructions to slack via the Web APISlackkit.Messagefor authoring simple or richly-formatted messages via Incoming Webhooks
Composing messages:
Slackkit.Message.SigilsMessage DSLSlackkit.Message.BuilderMessage DSLSlackkit.Referencefor dealing with Channel and User representationsSlackkit.Attachmentattaching payloads to MessagesSlackkit.Buttonfor building Interactive Button workflowsSlackkit.Emojifor emoji
Interacting with data:
Slackkit.Userfor taking actions on behalf of a UserSlackkit.Botfor building Bots that can notice any Slack eventSlackkit.Interactionfor responding to Interactive Button input
Utilities:
Slackkit.Endpointfor creating HTTP endpoints for receiving Slack dataSlackkit.Socketfor establishing websocket connections with the Slack RTM APISlackkit.Authfor performing OAuth handshakes