Skip to content

Commit

Permalink
[New] Added two events that trigger when a track or a playlist has be…
Browse files Browse the repository at this point in the history
…en added to the queue
  • Loading branch information
naseif committed Aug 31, 2021
1 parent e5a6060 commit 075c5de
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions playerEvents/trackAdd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
name: "trackAdd",
async execute(queue, track) {
console.log("A track has beed added!");
},
};
6 changes: 6 additions & 0 deletions playerEvents/tracksAdd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
name: "tracksAdd",
async execute(queue, track) {
console.log(`A playlist has been added!`);
},
};

0 comments on commit 075c5de

Please sign in to comment.