WardrikSlack. Rooms
(wardrik_slack v0.1.0-rc.1)
Copy Markdown
Binds agents to Slack channels, as WardrikChannel.Rooms sets out, and shows the binding there.
When the bot is invited into a Slack channel, it posts where things stand:
- One agent offered - the agent answers there from now on. A button switches between every message and mentions only. A menu switches agents or stops it.
- Several offered - a button for each.
- None offered - how to offer one.
Removing the bot unbinds the room.
Summary
Functions
Handles a room's button press or menu choice, then posts where things stand.
Handles bot, the app's member ID, joining or leaving a Slack channel.
Returns the message that shows a room's binding.
Returns agent without the workspace owner's prefix, as triage for acme/triage.
Functions
@spec answer(WardrikChannel.Workspace.t(), map()) :: :ok | :ignored
Handles a room's button press or menu choice, then posts where things stand.
@spec event(WardrikChannel.Workspace.t(), map(), String.t()) :: :ok | :ignored | {:error, term()}
Handles bot, the app's member ID, joining or leaving a Slack channel.
@spec message( WardrikChannel.Rooms.shown() | :stopped, WardrikChannel.Workspace.t(), String.t() | nil ) :: %{text: String.t(), blocks: [map()]}
Returns the message that shows a room's binding.
@spec shown(WardrikChannel.Workspace.t(), String.t()) :: String.t()
Returns agent without the workspace owner's prefix, as triage for acme/triage.