chore: remove the download feature for top.gg compliance
Merged
LU
3mo ago+3101+3101+0123456789012345678901234567890123456789-5206-5206-0123456789012345678901234567890123456789
Summary
- Top.gg's bot guidelines prohibit distributing downloads of copyrighted material without licensing.
/downloadused yt-dlp to rip audio/video from YouTube/Spotify/SoundCloud with no rights check - a likely rejection cause for the pending listing review. Removed entirely (not gated) before resubmission. - Drops the download command tree, yt-dlp wrapper + download-path utils,
Downloadprisma model +guild_settingsdownload columns, thedownloadfeature toggle (bot/shared/frontend), and the now-deadyoutube-dl-execdep. - Separate atomic commit fixes pre-existing unrelated schema drift found while generating the migration:
remindershad no FK toguildssince the table was created, andafk_statuseswas missing its declared index. Tracked in #1955. - Full rationale:
decisions/2026-08-09-remove-download-feature-topgg-compliance.md
Test plan
-
type:checkclean on all 4 packages (shared/bot/backend/frontend) - Full test suite green: shared 73/73, bot 235/236 (1 pre-existing skip), backend 85/85, frontend 86/86
-
prisma migrate resetreplayed both new migrations cleanly against local dev DB;prisma migrate statusconfirms no drift -
package-lock.jsonregenerated after droppingyoutube-dl-exec
Summary by cubic
Removes the /download command and all download code for Top.gg compliance. Previously users could rip audio/video via yt‑dlp; now the command, related toggles, schema, and dependency are removed. Music playback is unchanged.
- Drops the download command tree and registration in
packages/bot; removes thedownloadcategory from command constants inpackages/botand@lucky/shared; adds tests forcommandCategory. - Removes the
youtube-dl-execdependency and regenerates the lockfile. - Removes
DOWNLOAD_VIDEO/DOWNLOAD_AUDIOfeature toggles across@lucky/shared, backend tests, and frontend; updates fixtures and e2e tests to useAUTOPLAY/LYRICS. - Migrations: drops the
downloadstable andguild_settings.allowDownloads/downloadCooldowncolumns; fixes drift by adding the missingreminders.guildIdFK with orphan cleanup and creating theafk_statuses.guildIdindex. All DDL is guarded per-table for safe, idempotent replays. - Updates README and
docs/ARCHITECTURE.md, adds an ADR, and removes stale fields fromscripts/backfill-guild-settings.mjs.
Rollout
- Action: run Prisma migrations after merge.
- Command sync will remove
/downloadon deploy; no changes required for music or other commands.
Summary by CodeRabbit
-
Removed Features
- Removed the
/downloadcommand and video/audio download functionality. - Removed download-related settings, permissions, cooldowns, and feature toggles.
- Music, playlist, Spotify, and other commands remain available.
- Removed the
-
Documentation
- Updated command and architecture documentation.
-
Maintenance
- Removed obsolete download data and configuration.
- Improved database schema consistency.