ZerioDev / Music-bot

A complete code to download for a cool Discord music bot !
https://discord.gg/5cGSYV8ZZj
GNU General Public License v3.0
882 stars 1.08k forks source link

refactor play.js, add debugger and equalizer #269

Closed twlite closed 1 year ago

twlite commented 1 year ago

did some modifications to play command to use player.play() method, added debug events (helpful to see how far the bot goes before error is thrown, or other informations), and equalizer command.

As a side note, usage of global.player is not needed as same thing can be done via useMasterPlayer hook exported by discord-player.

useMasterPlayer()

https://discord-player.js.org/docs/guides/using-hooks#usemasterplayer-fetch-the-player-instance

Lyrics

https://discord-player.js.org/docs/guides/getting-lyrics

revot334 commented 1 year ago

not in the project's path with the debugger and equalizer the player looks fine

twlite commented 1 year ago

not in the project's path with the debugger and equalizer the player looks fine

what do you mean by that?