A Sun plugin for Slack. It posts one
notification per key and updates it in place (with optional Approve / Reject
buttons), and sends ephemeral messages only one user sees. It also checks the
signing secret on Slack requests forwarded by the kernel (slash commands,
messages, @mentions, button clicks, thread replies) and turns them into the
task_requested, approval and steer triggers. It talks only to
slack.com and reads two secrets, SLACK_BOT_TOKEN and
SLACK_SIGNING_SECRET. See mod.yaml; the Slack app setup (scopes, events,
interactivity) is in the doc comment at the top of src/main.rs.
sun plugin add slackcargo build --release
mkdir mod-slack && cp target/release/mod-slack mod.yaml mod-slack/
sun plugin add ./mod-slacksun plugin add takes a folder holding mod.yaml and the mod-slack binary.
- Bump
versioninCargo.tomlandmod.yaml(keep them equal), commit. - Tag
v<version>and push the tag. The release workflow (cargo-dist,.github/workflows/release.yml) uploadsmod-slack-<target>.tar.gzforaarch64-apple-darwin,x86_64-unknown-linux-muslandaarch64-unknown-linux-musl. - Open a PR to
madlabs-tech/sun-aibumping this plugin's entry incatalog/mods.json(version and permissions).
Apache-2.0, see LICENSE.