Files
Echoion/config.example.json
T

124 lines
3.8 KiB
JSON

{
"_schema": "Echoion Music Bot Configuration v2.0",
"_documentation": "https://github.com/faumaray/echoion/wiki/Configuration",
"bot": {
"_section": "Core Bot Settings",
"botName": "Echoion",
"commandPrefix": "!",
"defaultVolume": 0.5,
"maxQueueSize": 100,
"trackTimeout": 30000,
"_reconnection": "Auto-reconnection settings",
"autoReconnect": true,
"reconnectDelay": 5000,
"maxReconnectAttempts": 5,
"_audio": "Audio quality settings",
"preferredQuality": "High",
"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": 4,
"ytDlpAsyncEnabled": true,
"_urlShortening": "Shorten YouTube links using faumaray.ru",
"enableUrlShortening": true
},
"network": {
"_section": "Network & Proxy Settings",
"_proxy": "Optional proxy configuration for YouTube access",
"proxyType": "HTTP",
"proxyHost": null,
"proxyPort": null,
"proxyUsername": null,
"proxyPassword": null,
"_rpc": "WebSocket RPC server for Desktop/API clients",
"rpcEnabled": true,
"rpcPort": 8765,
"rpcBindAddress": "127.0.0.1"
},
"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": 300000,
"sessionTimeout": 3600000,
"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,
"_queue": "Queue management settings",
"shuffleMode": "random",
"repeatMode": "off",
"maxHistorySize": 50
},
"advanced": {
"_section": "Advanced Settings (Modify with caution)",
"_audio": "Low-level audio configuration",
"sampleRate": 192000,
"channels": 2,
"bufferSize": 7680,
"_threading": "Thread pool configuration",
"commandThreadPoolSize": 4,
"networkThreadPoolSize": 4,
"decoderThreads": 2,
"_cache": "Cache and temporary file settings",
"cacheEnabled": true,
"cacheMaxSize": "1GB",
"cacheTTL": 86400,
"tempCleanupInterval": 3600
}
}