UCLA-Creative-Labs / spot-the-song

MIT License
2 stars 0 forks source link

🚀 Feature: change lobby playlist to be top 99 songs of each user #11

Open darren2hang opened 1 year ago

darren2hang commented 1 year ago

We want the lobby playlist to be a pool of all the users in the lobbys' top songs, so we can randomly choose a song from the playlist.

Use Case

Later, we will create a getRandomSong function and it needs a pool of songs to choose from.

Proposed Solution

Modifiy the Lobby.synthesizePlaylist() function in the packages/@aurgy/server/lib/lobby.ts file.

Use user.topSongs to get a users top songs


This is a :rocket: Feature Request