diff --git a/src/utils/factory/createPlayer.js b/src/utils/factory/createPlayer.js index 35f6924..0c5813c 100644 --- a/src/utils/factory/createPlayer.js +++ b/src/utils/factory/createPlayer.js @@ -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 (