mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
fix: make player accessible globally for use in sharding eval
This commit is contained in:
1 parent
909c0c0b4b
commit
bcc0c926ac
1 file changed
+4
@@ -19,6 +19,10 @@ exports.createPlayer = async (client) => {
|
||||
}
|
||||
});
|
||||
|
||||
// make player accessible from anywhere in the application
|
||||
// primarily to be able to use it in broadcastEval and other sharding methods
|
||||
global.player = player;
|
||||
|
||||
onBeforeCreateStream(async (track) => {
|
||||
if (track.source === 'youtube') {
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user