This commit is contained in:
Eric Villnow 2025-10-03 21:26:38 -05:00
commit a796176a17
8 changed files with 947 additions and 0 deletions

18
queue.js Normal file
View file

@ -0,0 +1,18 @@
const Queue = (() => {
});
function queueSong(song, cost) {
if (Credits.remove(cost)) {
//songQueue.push(song);
console.log(`Queued at end: ${song}`);
}
}
function queueNext(song, cost) {
if (Credits.remove(cost)) {
// Insert after current song (assume index 0 = currently playing)
//songQueue.splice(1, 0, song);
console.log(`Queued next: ${song}`);
}
}