bdistin / OhGodMusicBot

A v11 Discord.JS music bot in 100 lines or less
MIT License
82 stars 88 forks source link

Bot doesn't play songs #37

Closed ghost closed 6 years ago

ghost commented 6 years ago

I used the song Bloom by Troye Sivan for example, don't question it!

Console log:

(node:33536) DeprecationWarning: TextChannel#sendMessage: use TextChannel#send instead { '444472391087816708': { playing: true, songs: [ [Object] ] } } { url: 'https://www.youtube.com/watch?v=rxmtHVSVjdo', title: 'Troye Sivan - Bloom (Lyric Video)', requester: 'Samcool236 🇦🇺' } undefined { '444472391087816708': { playing: true, songs: [] } } undefined { '444472391087816708': { playing: true, songs: [ [Object], [Object], [Object] ] } } { url: 'https://www.youtube.com/watch?v=rxmtHVSVjdo', title: 'Troye Sivan - Bloom (Lyric Video)', requester: 'Samcool236 🇦🇺' } { url: 'https://www.youtube.com/watch?v=rxmtHVSVjdo', title: 'Troye Sivan - Bloom (Lyric Video)', requester: 'Samcool236 🇦🇺' } { url: 'https://www.youtube.com/watch?v=rxmtHVSVjdo', title: 'Troye Sivan - Bloom (Lyric Video)', requester: 'Samcool236 🇦🇺' } undefined

I added the same song 3 times in the queue, the bot joins the voice channel, fine. However, it doesn't play the songs, it just auto skips all of the songs till the queue is empty.

Edit: I tried making another music bot from scratch using another node module, and it does the same thing. Is the issue on my end?

Paultje52 commented 6 years ago

Are you hosting on a pi?

ghost commented 6 years ago

I am just hosting the bot from Visual Studio Code, for temporary use so I can play around with the code and experiment

Paultje52 commented 6 years ago

install discord.js with opusscript:

npm i -s discord.js opusscript

And don't fergot to install ffmpeg, you can se how in the readmy.md

ghost commented 6 years ago

Turns out my $PATH variable for FFmpeg set itself incorrectly. I found it's path, and manually set it.