Liking cljdoc? Tell your friends :D

hive.connectors.slack

Slack connector using official Java SDK. Sends hivemind events to Slack channels.

Slack connector using official Java SDK.
Sends hivemind events to Slack channels.
raw docstring

create-clientclj

(create-client)

Create a reusable Slack client instance. The client is thread-safe and should be reused across calls.

Create a reusable Slack client instance.
The client is thread-safe and should be reused across calls.
sourceraw docstring

format-hivemind-eventclj

(format-hivemind-event {:keys [a e m]})

Format a hivemind event for Slack display.

Event map keys: :a - agent ID (e.g., "ling-1") :e - event type (started, progress, completed, error, blocked) :m - message content

Returns formatted mrkdwn string.

Format a hivemind event for Slack display.

Event map keys:
  :a - agent ID (e.g., "ling-1")
  :e - event type (started, progress, completed, error, blocked)
  :m - message content

Returns formatted mrkdwn string.
sourceraw docstring

notify-channel!clj

(notify-channel! token channel event)

Send a formatted hivemind event to a Slack channel.

Args: token - Slack bot token channel - Target channel event - Hivemind event map {:a agent-id :e event-type :m message}

Returns: Result map from send-message!

Send a formatted hivemind event to a Slack channel.

Args:
  token   - Slack bot token
  channel - Target channel
  event   - Hivemind event map {:a agent-id :e event-type :m message}

Returns:
  Result map from send-message!
sourceraw docstring

send-message!clj

(send-message! token channel text)

Send a message to a Slack channel.

Args: token - Slack bot token (xoxb-...) channel - Channel name (#general) or ID (C01234...) text - Message text (supports Slack mrkdwn formatting)

Returns: {:ok true} on success {:ok false :error "error_code"} on failure

Send a message to a Slack channel.

Args:
  token   - Slack bot token (xoxb-...)
  channel - Channel name (#general) or ID (C01234...)
  text    - Message text (supports Slack mrkdwn formatting)

Returns:
  {:ok true} on success
  {:ok false :error "error_code"} on failure
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close