Slackbox.Notifier (Slackbox v0.1.0)

Copy Markdown View Source

Turns a module into your app's Slack notifier — the single choke point every outbound Slack call flows through, dispatching to a per-environment adapter.

defmodule MyApp.Slack do
  use Slackbox.Notifier, otp_app: :my_app
end

# config :my_app, MyApp.Slack, adapter: Slackbox.Adapters.Local

Generated functions: post_message/1,2 (alias deliver/1,2), post_ephemeral/1,2, update/1,2, delete/1,2, open_view/2,3, respond/2,3. The optional trailing opts are runtime/adapter overrides (token, timeout, …), merged over the configured adapter config — message content belongs on the Slackbox.Message.