From be55204696a36e62844bd9a92d94e2b0e863a9a8 Mon Sep 17 00:00:00 2001 From: CrisisAlpha Date: Fri, 20 Feb 2026 15:11:40 +0800 Subject: [PATCH] docs(config): add missing duckduckgo, exec, and qq sections to example config config.example.json was missing three sections that exist in the Go config structs and defaults: - tools.web.duckduckgo: DuckDuckGo is enabled by default in defaults.go and requires no API key (free search provider), but users who copy the example config silently lose it since the section was omitted. - tools.exec: The ExecConfig struct supports enable_deny_patterns and custom_deny_patterns for security hardening, but users had no way to discover these options from the example. - channels.qq: The QQ channel was the only channel in ChannelsConfig missing from the example while all others were present. Co-authored-by: Cursor --- config/config.example.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config/config.example.json b/config/config.example.json index e14d4fa63..abc928e92 100644 --- a/config/config.example.json +++ b/config/config.example.json @@ -59,6 +59,12 @@ "token": "YOUR_DISCORD_BOT_TOKEN", "allow_from": [] }, + "qq": { + "enabled": false, + "app_id": "YOUR_QQ_APP_ID", + "app_secret": "YOUR_QQ_APP_SECRET", + "allow_from": [] + }, "maixcam": { "enabled": false, "host": "0.0.0.0", @@ -172,6 +178,10 @@ "api_key": "YOUR_BRAVE_API_KEY", "max_results": 5 }, + "duckduckgo": { + "enabled": true, + "max_results": 5 + }, "perplexity": { "enabled": false, "api_key": "pplx-xxx", @@ -180,6 +190,10 @@ }, "cron": { "exec_timeout_minutes": 5 + }, + "exec": { + "enable_deny_patterns": false, + "custom_deny_patterns": [] } }, "heartbeat": {