ZerioDev / Music-bot

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

Not working (beta branch): Skipping extractors execution since zero extractors were registered #280

Closed Alpaca0x0 closed 1 year ago

Alpaca0x0 commented 1 year ago

When I use "play" command, the bot doesn't join voice chanel(no music of course), and the console show me the message "Skipping extractors execution since zero extractors were registered". So I try to use "--trace-warnings" argument in "node ." command, then console show me this:

(node:197495) [NoExtractors] Warning: Skipping extractors execution since zero extractors were registered
    at Util.warn (/home/alca/services/discord-bot/EDoT/node_modules/discord-player/dist/index.js:187:13)
    at ExtractorExecutionContext.run (/home/alca/services/discord-bot/EDoT/node_modules/discord-player/dist/index.js:456:12)
    at _Player.search (/home/alca/services/discord-bot/EDoT/node_modules/discord-player/dist/index.js:3128:42)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.execute (/home/alca/services/discord-bot/EDoT/commands/music/play.js:18:21)

How should I do to fix this :(


IsotopicGoose commented 1 year ago

I have the same issue on Windows using both yarn and npm as my package manager. Clean installs don't seem to fix the problem.

twlite commented 1 year ago

Add this line in your main file

player.extractors.loadDefault();
Alpaca0x0 commented 1 year ago

Add this line in your main file

player.extractors.loadDefault();

It's working now ! Thank you :D Good answer.