feat: add discord guild map + group dm controls
This commit is contained in:
@@ -177,22 +177,28 @@ Configure the Discord bot by setting the bot token and optional gating:
|
||||
enableReactions: true, // allow agent-triggered reactions
|
||||
dm: {
|
||||
enabled: true, // disable all DMs when false
|
||||
allowFrom: ["1234567890", "steipete"] // optional DM allowlist (ids or names)
|
||||
allowFrom: ["1234567890", "steipete"], // optional DM allowlist (ids or names)
|
||||
groupEnabled: false, // enable group DMs
|
||||
groupChannels: ["clawd-dm"] // optional group DM allowlist
|
||||
},
|
||||
guild: {
|
||||
channels: ["general", "help"], // optional channel allowlist (ids or names)
|
||||
allowFrom: {
|
||||
guilds: ["123456789012345678"], // optional guild allowlist (ids or names)
|
||||
users: ["987654321098765432"] // optional user allowlist (ids or names)
|
||||
},
|
||||
requireMention: true, // require @bot mentions in guilds
|
||||
historyLimit: 20 // include last N guild messages as context
|
||||
}
|
||||
guilds: {
|
||||
"123456789012345678": { // guild id (preferred) or slug
|
||||
slug: "friends-of-clawd",
|
||||
requireMention: false, // per-guild default
|
||||
users: ["987654321098765432"], // optional per-guild user allowlist
|
||||
channels: {
|
||||
general: { allow: true },
|
||||
help: { allow: true, requireMention: true }
|
||||
}
|
||||
}
|
||||
},
|
||||
historyLimit: 20 // include last N guild messages as context
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Clawdis reads `DISCORD_BOT_TOKEN` or `discord.token` to start the provider (unless `discord.enabled` is `false`). Use `user:<id>` (DM) or `channel:<id>` (guild channel) when specifying delivery targets for cron/CLI commands.
|
||||
Guild slugs are lowercase with spaces replaced by `-`; channel keys use the slugged channel name (no leading `#`). Prefer guild ids as keys to avoid rename ambiguity.
|
||||
|
||||
### `imessage` (imsg CLI)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user