Androz2091 / discord-music-bot

The perfect music bot for your Discord server! 🤘
238 stars 127 forks source link

Queues track but not play it #26

Closed KC080 closed 2 years ago

KC080 commented 3 years ago

I recently got the bot to work after upgrading NodeJS on repl.it, however, whenever I use the /play command, it says the song has been queued, but not playing.

image

thyme4soup commented 3 years ago

See #12 TL;DR yarn add opusscript or npm install opusscript (at least that's what fixed it for me)

KC080 commented 3 years ago

See #12 TL;DR yarn add opusscript or npm install opusscript (at least that's what fixed it for me)

doesnt work for me. the problem is when i use the /np command it says theres nothing playing although i sent the /play command.

another pic: image

gritn0 commented 3 years ago

Having the same error

acffordyce973 commented 3 years ago

Same issue here. It did play once and now nothing.

Ethan1498 commented 3 years ago

Is https://ffmpeg.org/download.html installed? You have to do this step manually

acffordyce973 commented 3 years ago

Installed it via apt on Ubuntu 20.04.

Ethan1498 commented 3 years ago

Any errors in console when bot is launched?

Zebiano commented 3 years ago

Make sure to:

  1. Run Node v16
  2. Install ffmpeg with sudo apt install ffmpeg
  3. Install opusscript with npm i opusscript
  4. Invite your bot with a link like this one:
    https://discord.com/api/oauth2/authorize?client_id=YOUR_BOT_ID&permissions=0&scope=applications.commands%20bot

    This should be enough to get the bot working. Just managed to do it!

voltrare commented 2 years ago

I got it to work by installing ffmpeg and reinstalling everything back without opusscript I think the main reason is because ffmpeg is missing

henriqgoncalvs commented 2 years ago

For me it worked just deleting node_modules and running yarn again

KC080 commented 2 years ago

found out the solution. you need FFmpeg. though I can only use the bot when I run it locally because repl.it does not support FFmpeg. Thanks for the help.

Also, if you use repl.it, you can use the ffmpeg-static module. I installed it and thats how it worked for me.

voltrare commented 2 years ago

found out the solution. you need FFmpeg. though I can only use the bot when I run it locally because repl.it does not support FFmpeg. Thanks for the help.

check the new updates