From 178f222fa13d2dfcd878f7fd672bd9b586d2bbc9 Mon Sep 17 00:00:00 2001 From: Ksan Date: Sun, 30 Aug 2026 14:53:50 +0200 Subject: [PATCH] re-enable oauth and restart bot after lavalink on deploy --- .gitea/workflows/ci-cd.yaml | 7 +++++-- lavalink/application.yaml | 6 +----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 477e943..4328c6b 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -59,6 +59,9 @@ jobs: # Lavalink's config is a bind mount, and compose only recreates a # service when its own config changes — not when a mounted file's - # contents do. Restart it explicitly so application.yaml is re-read. + # contents do. Restart it explicitly so application.yaml is re-read, + # then restart the bot after it: depends_on only orders startup, so + # otherwise the bot keeps a dead node and every /play fails with + # "Node main is unavailable". ssh -i ~/.ssh/key $HOST \ - "cd $DIR && docker compose pull && docker compose up -d && docker compose restart lavalink" + "cd $DIR && docker compose pull && docker compose up -d && docker compose restart lavalink && docker compose restart bot" diff --git a/lavalink/application.yaml b/lavalink/application.yaml index fa2e851..e644383 100644 --- a/lavalink/application.yaml +++ b/lavalink/application.yaml @@ -50,11 +50,7 @@ plugins: # so the device flow is skipped on every later start. # # Use a throwaway Google account. Google does ban accounts for this. - # - # Off for now: TV clears the login check anonymously for ordinary tracks, - # so a token only buys age-restricted ones. Flip to true (and do the - # device flow) if those turn out to matter. - enabled: false + enabled: true # YouTube serves some regions a localized player script the plugin can't # parse, which fails playback with "must find sig function". Hand the