MQL5-Google-Onedrive/scripts/load_vault.ps1
NUNA de4e3c9c38 Add Telegram deployment bot, web dashboard, and deployment automation
- Add Telegram bot (@GenX_FX_bot) for cloud deployment automation
- Add web dashboard with deployment status and quick links
- Add Exness terminal deployment script
- Add dashboard deployment script (Fly.io, Render, GitHub Pages)
- Add personal vault for secure credential storage
- Update deploy_cloud.py with Fly.io deployment automation
- Add GitHub Pages workflow for dashboard auto-deployment
- Add bot setup documentation and deployment guides
2026-01-19 06:08:25 +07:00

24 lines
908 B
PowerShell

# Load credentials from personal vault
# Usage: . .\scripts\load_vault.ps1
$vaultPath = Join-Path (Split-Path -Parent $PSScriptRoot) "config\vault.json"
if (Test-Path $vaultPath) {
$vault = Get-Content $vaultPath | ConvertFrom-Json
# Load Telegram bot token
if ($vault.telegram_bot.token) {
$env:TELEGRAM_BOT_TOKEN = $vault.telegram_bot.token
Write-Host "✅ Telegram bot token loaded from vault" -ForegroundColor Green
}
# Load allowed user IDs if present
if ($vault.telegram_bot.allowed_user_ids) {
$env:TELEGRAM_ALLOWED_USER_IDS = $vault.telegram_bot.allowed_user_ids -join ","
}
Write-Host "✅ Vault loaded successfully" -ForegroundColor Green
} else {
Write-Host "⚠️ Vault file not found at: $vaultPath" -ForegroundColor Yellow
Write-Host " Create config/vault.json with your credentials" -ForegroundColor Yellow
}