https://github.com/codenotary/immubot-slack
https://github.com/codenotary/immubot-slack
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codenotary/immubot-slack
- Owner: codenotary
- Created: 2023-06-29T08:22:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-02T15:18:55.000Z (over 2 years ago)
- Last Synced: 2025-10-01T13:39:24.265Z (3 months ago)
- Language: JavaScript
- Size: 259 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# immubot for slack
Immubot for slack to track conversation history and to ensure integrity
## Description
Immubot for slack is based on [slack/bolt](https://slack.dev/bolt-js/concepts) and listens on message_changed and message_deleted events. To ensure message integrity all changes are pushed to [ImmuDB Vault](https://vault.immudb.io/) service
Key features
* works with multiple channels (depending on which channel you invite the Immubot)
* replies in a thread of edited message and states the change
* posts in a channel on an event of deleted message and states what was deleted by whoam
* writes both events and changes to ImmuDB Vault
### Dependencies
* Slack bot application with bot token and signing secret
* Slack app token with `connections:write` scope
### Executing
```
export SLACK_BOT_TOKEN=
export SLACK_SIGNING_SECRET=
export SLACK_APP_TOKEN=
export IMMUDB_VAULT_TOKEN=
npm ci
node app.js
```
## How it looks in Slack

## How it looks in ImmuDB Vault
```
{
"document": {
"_id": "649d23460000000000000004528650cd",
"_vault_md": {
"creator": "a:855ef31c-4b58-490f-81c5-baf85f53824e",
"ts": 1688019782
},
"author": "U01S4NWRVK3",
"channel": "C05EPRRQ4FP",
"message": "Good morning Everyone!",
"previous_message": "Hi all",
"type": "message_changed"
},
"revision": "",
"transactionId": ""
},
{
"document": {
"_id": "649d23b80000000000000005528650ce",
"_vault_md": {
"creator": "a:855ef31c-4b58-490f-81c5-baf85f53824e",
"ts": 1688019896
},
"author": "U01S4NWRVK3",
"channel": "C05EPRRQ4FP",
"previous_message": "kids at the keyboard",
"type": "message_deleted"
},
"revision": "",
"transactionId": ""
}
```
