94 lines
2.2 KiB
Markdown
94 lines
2.2 KiB
Markdown
---
|
|
title: Discord / OpenClaw Configuration
|
|
category: OpenClaw
|
|
status: active
|
|
date: 2026-02-23
|
|
config_file: ~/.openclaw/config/config.json
|
|
tags: [openclaw, discord, config, slash-commands]
|
|
---
|
|
|
|
# Discord / OpenClaw Configuration
|
|
|
|
## Date: 2026-02-23
|
|
|
|
## Working Config (Slash Commands + Agent Responses)
|
|
|
|
**File Location:** `~/.openclaw/config/config.json`
|
|
|
|
### Critical Setup
|
|
|
|
Both layers required for full functionality:
|
|
|
|
```json
|
|
"channels": {
|
|
"discord": {
|
|
"enabled": true,
|
|
"token": "YOUR_TOKEN",
|
|
"groupPolicy": "open",
|
|
"guilds": {
|
|
"1465924568119251006": {
|
|
"users": [
|
|
"458667380332036117",
|
|
"1465926559134257294"
|
|
],
|
|
"channels": {
|
|
"1466074219829006599": {
|
|
"allow": true
|
|
}
|
|
},
|
|
"requireMention": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
### Why Both Layers?
|
|
|
|
| Layer | Location | Purpose | Without It |
|
|
|-------|----------|---------|------------|
|
|
| `users` | Guild level | Slash commands working | `/compact`, `/status` don't register |
|
|
| `channels.allow` | Channel level | Agent can respond | Agent stops responding to messages |
|
|
|
|
### Bug/Design Issue
|
|
|
|
The `users` whitelist prevents agent responses — it's a bug where:
|
|
1. `users` enables slash commands ✅
|
|
2. But also breaks message processing ❌
|
|
3. `channels.allow` is the workaround to re-enable responses
|
|
|
|
**Both required** until OpenClaw fixes the bug.
|
|
|
|
### Channel IDs
|
|
|
|
| Name | ID | Purpose |
|
|
|------|-----|---------|
|
|
| #home-assistant | 1466074219829006599 | HA, room-assistant |
|
|
| #coding | 1468627455656067074 | Code, git, projects |
|
|
| #projects | 1468257895152881796 | Non-coding experiments |
|
|
| #alerts | 1473701182076752135 | System alerts |
|
|
|
|
### User IDs
|
|
|
|
| User | ID |
|
|
|------|-----|
|
|
| Corey | 458667380332036117 |
|
|
| OpenClaw Bot | 1465926559134257294 |
|
|
|
|
## Slash Commands
|
|
|
|
| Command | Purpose |
|
|
|---------|---------|
|
|
| `/compact` | Compact session context |
|
|
| `/status` | Show session status |
|
|
|
|
## Related OpenClaw Files
|
|
|
|
- [[Memory System]] — Complete memory architecture documentation
|
|
- [[Projects/Memory System/Memory System Architecture]] — Detailed data flow diagrams
|
|
- [[Dataview Query Examples]] — Query memory system with Dataview
|
|
|
|
---
|
|
|
|
*Updated: 2026-02-23*
|