init
This commit is contained in:
commit
a796176a17
8 changed files with 947 additions and 0 deletions
18
queue.js
Normal file
18
queue.js
Normal 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}`);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue