@datanovallc/openclaw-slack-router 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,11 +21,9 @@ In the [Slack app console](https://api.slack.com/apps), create a new app and con
|
|
|
21
21
|
|
|
22
22
|
### 2. Install the plugin
|
|
23
23
|
|
|
24
|
-
<!-- AUTO:install-cmd -->
|
|
25
24
|
```
|
|
26
|
-
openclaw plugins install @datanovallc/openclaw-slack-router@0.1.
|
|
25
|
+
openclaw plugins install @datanovallc/openclaw-slack-router@0.1.22
|
|
27
26
|
```
|
|
28
|
-
<!-- /AUTO:install-cmd -->
|
|
29
27
|
|
|
30
28
|
### 3. Configure your tokens
|
|
31
29
|
|
|
@@ -43,12 +41,9 @@ In Slack, create a channel (e.g. `#rook-main`) and invite your bot user to it.
|
|
|
43
41
|
|
|
44
42
|
Right-click the channel in Slack → **View channel details** → copy the channel ID (starts with `C`).
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
~/.openclaw/state/@datanovallc-openclaw-slack-router-*/openclaw-slack-router.config.json
|
|
49
|
-
```
|
|
44
|
+
The setup wizard (step 3) asks for this ID — if you provided it there, skip this step.
|
|
50
45
|
|
|
51
|
-
|
|
46
|
+
Otherwise, add it to the config file at `~/.openclaw/openclaw-slack-router.config.json`:
|
|
52
47
|
```json
|
|
53
48
|
{
|
|
54
49
|
"mainChannelId": "CXXXXXXXXX"
|
|
@@ -69,14 +64,12 @@ The bot posts a welcome message in your main channel on first start.
|
|
|
69
64
|
|
|
70
65
|
In your main channel, tell the bot:
|
|
71
66
|
|
|
72
|
-
<!-- AUTO:bot-commands -->
|
|
73
67
|
| Say this | What happens |
|
|
74
68
|
|----------|-------------|
|
|
75
69
|
| `new channel my-project` | Create a new project channel (e.g. `new channel my-project`) |
|
|
76
70
|
| `list channels` | Show all active channels |
|
|
77
71
|
| `remove channel my-project` | Deactivate a channel |
|
|
78
72
|
| `help` | Shows available commands |
|
|
79
|
-
<!-- /AUTO:bot-commands -->
|
|
80
73
|
|
|
81
74
|
### Chat in a project channel
|
|
82
75
|
|
|
@@ -95,14 +88,12 @@ Route to a specific agent:
|
|
|
95
88
|
|
|
96
89
|
Set in `~/.openclaw/.env` by the setup wizard.
|
|
97
90
|
|
|
98
|
-
<!-- AUTO:env-vars -->
|
|
99
91
|
| Variable | Required | Description |
|
|
100
92
|
|----------|----------|-------------|
|
|
101
93
|
| `SLACK_BOT_TOKEN` | Yes | Slack bot OAuth token (xoxb-...) |
|
|
102
94
|
| `SLACK_APP_TOKEN` | Yes | Slack app-level token for Socket Mode (xapp-...) |
|
|
103
95
|
| `OPENCLAW_GATEWAY_URL` | No | openclaw gateway WebSocket URL |
|
|
104
96
|
| `OPENCLAW_GATEWAY_TOKEN` | No | Gateway auth token (if your gateway requires one) |
|
|
105
|
-
<!-- /AUTO:env-vars -->
|
|
106
97
|
|
|
107
98
|
## Configuration file
|
|
108
99
|
|
|
@@ -129,7 +120,6 @@ Set in `~/.openclaw/.env` by the setup wizard.
|
|
|
129
120
|
}
|
|
130
121
|
```
|
|
131
122
|
|
|
132
|
-
<!-- AUTO:config-fields -->
|
|
133
123
|
| Field | Description |
|
|
134
124
|
|-------|-------------|
|
|
135
125
|
| `botName` | Display name used in logs and error messages |
|
|
@@ -138,7 +128,6 @@ Set in `~/.openclaw/.env` by the setup wizard.
|
|
|
138
128
|
| `defaultAgent` | Which agent handles unrouted messages |
|
|
139
129
|
| `agents` | Registered agent names and descriptions |
|
|
140
130
|
| `channels` | Active project channels; `historyLimit` controls how many messages are fetched for context |
|
|
141
|
-
<!-- /AUTO:config-fields -->
|
|
142
131
|
|
|
143
132
|
## Adding a custom subagent
|
|
144
133
|
|
package/package.json
CHANGED