openclaw/src/config
Michelle Tilley 5af322f710 feat(discord): add set-presence action for bot activity and status
Bridge the agent tools layer to the Discord gateway WebSocket via a new
gateway registry, allowing agents to set the bot's activity and online
status. Supports playing, streaming, listening, watching, custom, and
competing activity types. Custom type uses activityState as the sidebar
text; other types show activityName in the sidebar and activityState in
the flyout. Opt-in via channels.discord.actions.presence (default false).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 04:02:38 +00:00
..
sessions chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
agent-dirs.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
agent-limits.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
cache-utils.ts fix: persist topic session files 2026-01-07 22:56:50 +00:00
channel-capabilities.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
channel-capabilities.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
commands.test.ts feat: expand skill command registration 2026-01-16 20:17:32 +00:00
commands.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
config-paths.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
config-paths.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
config.agent-concurrency-defaults.test.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
config.backup-rotation.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
config.broadcast.test.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
config.compaction-settings.test.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
config.discord.test.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
config.env-vars.test.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
config.gateway-remote-transport.test.ts feat(macos): add direct gateway transport 2026-01-24 21:02:13 +00:00
config.identity-avatar.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
config.identity-defaults.test.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
config.legacy-config-detection.accepts-imessage-dmpolicy.test.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
config.legacy-config-detection.rejects-routing-allowfrom.test.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
config.msteams.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
config.multi-agent-agentdir-validation.test.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
config.nix-integration-u3-u5-u9.test.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
config.plugin-validation.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
config.preservation-on-validation-failure.test.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
config.pruning-defaults.test.ts fix(agents): update cacheControlTtl to cacheRetention for pi-ai 0.50.9 2026-02-01 09:50:52 +01:00
config.sandbox-docker.test.ts style: oxfmt fixes (#925) (thanks @grp06) 2026-01-15 03:22:54 +00:00
config.skills-entries-config.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
config.talk-api-key-fallback.test.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
config.talk-voicealiases.test.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
config.telegram-custom-commands.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
config.tools-alsoAllow.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
config.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
config.web-search-provider.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
defaults.ts fix(agents): update cacheControlTtl to cacheRetention for pi-ai 0.50.9 2026-02-01 09:50:52 +01:00
env-substitution.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
env-substitution.ts refactor: simplify env var substitution scan 2026-01-17 00:34:00 +00:00
env-vars.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
group-policy.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
includes.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
includes.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
io.compat.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
io.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
legacy-migrate.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
legacy.migrations.part-1.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
legacy.migrations.part-2.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
legacy.migrations.part-3.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
legacy.migrations.ts refactor(config): split legacy handling 2026-01-14 05:39:51 +00:00
legacy.rules.ts TTS: gate auto audio on inbound voice notes (#1667) 2026-01-25 04:35:20 +00:00
legacy.shared.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
legacy.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
logging.ts refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
markdown-tables.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
merge-config.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
merge-patch.ts fix: prevent config clobbering 2026-01-15 04:06:11 +00:00
model-alias-defaults.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
normalize-paths.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
normalize-paths.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
paths.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
paths.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
plugin-auto-enable.test.ts fix: clarify doctor auto-enable hint 2026-01-20 15:58:30 +00:00
plugin-auto-enable.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
port-defaults.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
runtime-overrides.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
runtime-overrides.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
schema.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
schema.ts feat: add configurable web_fetch maxChars cap 2026-02-03 18:03:53 -08:00
sessions.cache.test.ts chore: Enable more lint rules, disable some that trigger a lot. Will clean up later. 2026-01-31 16:04:04 +09:00
sessions.test.ts chore: We have a sleep at home. The sleep at home: 2026-02-02 21:44:02 +09:00
sessions.ts feat(session): add daily reset policy 2026-01-18 06:37:37 +00:00
slack-http-config.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
slack-token-validation.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
talk.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
telegram-custom-commands.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
telegram-webhook-secret.test.ts fix(ci): repair lint/build checks 2026-02-01 10:20:27 +00:00
test-helpers.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
types.agent-defaults.ts feat(config): default thinking for sessions_spawn subagents (#7372) 2026-02-02 12:14:17 -08:00
types.agents.ts feat(ui): add Agents dashboard 2026-02-02 21:31:17 -05:00
types.approvals.ts feat(discord): add exec approval forwarding to DMs (#1621) 2026-01-24 20:56:40 +00:00
types.auth.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
types.base.ts feat(routing): add per-account-channel-peer session scope 2026-01-28 11:42:33 +05:30
types.browser.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
types.channels.ts Channels: finish Feishu/Lark integration 2026-02-03 14:27:39 -08:00
types.cron.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
types.discord.ts feat(discord): add set-presence action for bot activity and status 2026-02-04 04:02:38 +00:00
types.feishu.ts Channels: add Feishu/Lark support 2026-02-03 14:27:13 -08:00
types.gateway.ts fix: harden control ui framing + ws origin 2026-02-03 16:00:57 -08:00
types.googlechat.ts fix: newline chunking across channels 2026-01-25 04:11:36 +00:00
types.hooks.ts fix(security): prevent prompt injection via external hooks (gmail, we… (#1827) 2026-01-26 13:34:04 +00:00
types.imessage.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
types.memory.ts fix(memory/qmd): throttle embed + citations auto + restore --force 2026-02-02 23:45:05 -08:00
types.messages.ts feat: move TTS into core (#1559) (thanks @Glucksberg) 2026-01-24 08:00:44 +00:00
types.models.ts fix: refine bedrock discovery defaults (#1543) (thanks @fal3) 2026-01-24 01:18:33 +00:00
types.msteams.ts fix: gate Teams media auth retries 2026-02-02 02:08:13 -08:00
types.node-host.ts feat: add node browser proxy routing 2026-01-24 04:21:47 +00:00
types.openclaw.ts chore: apply formatter 2026-02-02 23:45:05 -08:00
types.plugins.ts feat(plugins): add memory slot plugin 2026-01-18 02:12:10 +00:00
types.queue.ts feat: add beta googlechat channel 2026-01-24 23:30:45 +00:00
types.sandbox.ts refactor: route browser control via gateway/node 2026-01-27 03:24:54 +00:00
types.signal.ts fix: configurable signal startup timeout 2026-01-25 04:51:35 +00:00
types.skills.ts fix: allow custom skill config bag 2026-01-20 15:57:08 +00:00
types.slack.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
types.telegram.ts feat(telegram): add sticker support with vision caching 2026-01-27 12:47:23 +05:30
types.tools.ts feat: add configurable web_fetch maxChars cap 2026-02-03 18:03:53 -08:00
types.ts Channels: finish Feishu/Lark integration 2026-02-03 14:27:39 -08:00
types.tts.ts TTS: gate auto audio on inbound voice notes (#1667) 2026-01-25 04:35:20 +00:00
types.whatsapp.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
ui-seam-color.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
validation.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
version.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
zod-schema.agent-defaults.ts feat(config): default thinking for sessions_spawn subagents (#7372) 2026-02-02 12:14:17 -08:00
zod-schema.agent-runtime.ts feat: add configurable web_fetch maxChars cap 2026-02-03 18:03:53 -08:00
zod-schema.agents.ts fix: enforce strict config validation 2026-01-19 03:39:25 +00:00
zod-schema.approvals.ts feat(discord): add exec approval forwarding to DMs (#1621) 2026-01-24 20:56:40 +00:00
zod-schema.channels.ts feat(heartbeat): add configurable visibility for heartbeat responses 2026-01-24 09:07:03 +00:00
zod-schema.core.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
zod-schema.hooks.ts fix(security): prevent prompt injection via external hooks (gmail, we… (#1827) 2026-01-26 13:34:04 +00:00
zod-schema.providers-core.ts feat(discord): add set-presence action for bot activity and status 2026-02-04 04:02:38 +00:00
zod-schema.providers-whatsapp.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
zod-schema.providers.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
zod-schema.session.ts feat (memory): Implement new (opt-in) QMD memory backend 2026-02-02 23:45:05 -08:00
zod-schema.ts fix: harden control ui framing + ws origin 2026-02-03 16:00:57 -08:00