Skip to content

Route YouTube command through destiny.gg public API#176

Merged
11k merged 3 commits into
masterfrom
feat/youtube-public-api
May 24, 2026
Merged

Route YouTube command through destiny.gg public API#176
11k merged 3 commits into
masterfrom
feat/youtube-public-api

Conversation

@11k

@11k 11k commented May 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the googleapis-backed YouTube service with calls to destiny.gg's public /api/info/videos endpoint, dropping the YOUTUBE_API_KEY and YOUTUBE_CHANNEL config.
  • Removes the unused getChannelStatus and getActiveLiveBroadcastsVideoId methods (no production callers).
  • Folds the remaining two video methods onto DggApi and deletes lib/services/youtube.js — both services now share the same dggApi.baseUrl.

Test plan

  • npm test — 194 passing, 0 failing
  • npm run lint — clean
  • Trigger !youtube against a test chat and confirm the message format ("<title>" posted <relative time> https://youtu.be/<id>)
  • Trigger !live to confirm the dggApi.baseUrl rename didn't regress the live command

11k added 3 commits May 24, 2026 09:32
Route the YouTube service through the website's /api/info/videos and
/api/info/stream endpoints instead of googleapis. Drops the
YOUTUBE_API_KEY/YOUTUBE_CHANNEL config and shares dggApi.baseUrl across
both services.
getChannelStatus and getActiveLiveBroadcastsVideoId had no production
callers — drop them along with their tests and stream fixtures.
Both services now hit the same destiny.gg base URL with no special
state, so collapse the video methods onto DggApi and delete the
standalone YouTube service.
@11k 11k added the enhancement New feature or request label May 24, 2026
@11k 11k merged commit 569d6b0 into master May 24, 2026
2 checks passed
@11k 11k deleted the feat/youtube-public-api branch May 24, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant