127 lines
5.2 KiB
JSON
127 lines
5.2 KiB
JSON
{
|
|
"_schema": "Echoion Music Bot Configuration v3.0",
|
|
"_documentation": "https://github.com/faumaray/echoion/wiki/Configuration",
|
|
"_format_note": "v3 serializes the config types directly: durations are strings (\"30000ms\", also accepts \"30s\"/\"5m\"/\"1h\"), enums use their names, and the proxy is a nested object (or null). Unknown keys (the _comment fields below) are ignored on load.",
|
|
|
|
"bot": {
|
|
"_section": "Core Bot Settings",
|
|
"botName": "Echoion",
|
|
"commandPrefix": "!",
|
|
"defaultVolume": 0.5,
|
|
"maxQueueSize": 100,
|
|
"_trackTimeout": "How long the engine waits (emitting silence) for a slow stream resolve before skipping the track",
|
|
"trackTimeout": "10s",
|
|
"_crossfade": "Crossfade between tracks (e.g. \"3s\"); \"0ms\" = plain gapless handoff",
|
|
"crossfade": "0ms",
|
|
"allowPlaylistImports": true
|
|
},
|
|
|
|
"youtube": {
|
|
"_section": "YouTube Integration",
|
|
"_apiKey": "Optional: YouTube Data API v3 key for faster searches",
|
|
"youtubeApiKey": null,
|
|
|
|
"_cookies": "Fix 'Sign in to confirm' errors using ONE of these methods:",
|
|
"_cookies_method_1": "Path to cookies.txt file (export from browser extension)",
|
|
"youtubeCookiesPath": null,
|
|
"_cookies_method_2": "Use cookies directly from browser: chrome, firefox, safari, edge",
|
|
"cookiesFromBrowser": null,
|
|
|
|
"_performance": "yt-dlp performance tuning (ytDlpMaxConcurrent capped at 8)",
|
|
"ytDlpMaxConcurrent": 4,
|
|
"ytDlpAsyncEnabled": true,
|
|
|
|
"_urlShortening": "Shorten YouTube links using faumaray.ru",
|
|
"enableUrlShortening": true
|
|
},
|
|
|
|
"network": {
|
|
"_section": "Network & Proxy Settings",
|
|
"_proxy": "Optional proxy for YouTube access. Set to null to disable, or an object: {\"kind\": \"Http\"|\"Socks5\", \"host\": \"...\", \"port\": 1080, \"username\": null, \"password\": null}",
|
|
"proxy": null,
|
|
|
|
"_rpc": "WebSocket RPC server for Desktop/API clients",
|
|
"rpcEnabled": true,
|
|
"rpcPort": 8765,
|
|
"rpcBindAddress": "127.0.0.1"
|
|
},
|
|
|
|
"sources": {
|
|
"_section": "Music source resolution chain (native paths first, proxied yt-dlp last)",
|
|
"_order": "Sources are tried in this order. innertube is the native YouTube player API; yandex is native Yandex Music; ytdlp-proxied is the proxied fallback and always works when a proxy is configured.",
|
|
"order": ["innertube", "yandex", "direct-url", "ytdlp-direct", "ytdlp-proxied"],
|
|
"_failureCooldown": "How long a failing source is skipped before being retried",
|
|
"failureCooldown": "5m",
|
|
"_hedgeDelay": "Race a second source when the first hasn't answered within this delay (first success wins); \"0ms\" disables",
|
|
"hedgeDelay": "300ms",
|
|
"_yandex": "Native Yandex Music. Full tracks need an OAuth token from an account with Plus (see yandex-music token guides); without one, yandex URLs fall back to yt-dlp.",
|
|
"yandexEnabled": true,
|
|
"yandexToken": null,
|
|
"_innertube": "Native YouTube player API (fastest path, one HTTP POST). Geo-blocked without a proxy; requireProxy skips it when none is configured.",
|
|
"innertubeEnabled": true,
|
|
"innertubeRequireProxy": true
|
|
},
|
|
|
|
"teamspeak": {
|
|
"_section": "TeamSpeak Server Connection",
|
|
"address": "localhost",
|
|
"port": 9987,
|
|
"serverPassword": "",
|
|
"nickname": "EchoionBot",
|
|
|
|
"_channel": "Default channel configuration",
|
|
"defaultChannelId": null,
|
|
"channelPassword": null,
|
|
|
|
"_permissions": "Server group IDs for access control",
|
|
"adminGroups": [6, 7],
|
|
"djGroups": [8],
|
|
"bannedGroups": []
|
|
},
|
|
|
|
"security": {
|
|
"_section": "Security & Authentication",
|
|
"requireAuthForAdmin": true,
|
|
"maxLoginAttempts": 5,
|
|
"lockoutDuration": "300000ms",
|
|
"sessionTimeout": "3600000ms",
|
|
"enableAuditLog": true,
|
|
|
|
"_api": "API authentication for RPC clients",
|
|
"apiKey": null,
|
|
"allowCors": false,
|
|
"corsOrigins": ["http://localhost:3000"]
|
|
},
|
|
|
|
"features": {
|
|
"_section": "Feature Toggles",
|
|
"enableHotReload": true,
|
|
"enableAutoReload": false,
|
|
"enableAutoUpdateCheck": true,
|
|
|
|
"_playback": "Playback behavior settings",
|
|
"autoStartOnSubscribe": true,
|
|
"pauseOnEmptySubscribers": true,
|
|
"resumeOnSubscriberReturn": true,
|
|
"_autoplay": "Radio mode: when the queue runs dry, enqueue tracks related to the last played one",
|
|
"autoplay": false,
|
|
"_loudness": "Normalize perceived volume across tracks (slow AGC toward the target level)",
|
|
"normalizeLoudness": false,
|
|
"targetLoudnessDb": -14.0,
|
|
|
|
"_queue": "Initial queue state on cold start (shuffleMode: off|random, repeatMode: off|all); runtime toggles are not written back",
|
|
"shuffleMode": "off",
|
|
"repeatMode": "off",
|
|
"maxHistorySize": 50
|
|
},
|
|
|
|
"advanced": {
|
|
"_section": "Advanced Settings (Modify with caution)",
|
|
"_cache": "Local audio track cache (files reused across plays and restarts)",
|
|
"cacheEnabled": true,
|
|
"cacheMaxSize": "1GB",
|
|
"cacheTTL": 86400,
|
|
"tempCleanupInterval": 3600
|
|
}
|
|
}
|