ajmwagar / zora

:robot: A discord bot built for you
https://zora.netlify.com
MIT License
1 stars 2 forks source link

Music bot breaks with URL as first song. #12

Closed ajmwagar closed 6 years ago

ajmwagar commented 6 years ago

The bot adds the song to the queue but does not play it.

Steps to reproduce:

  1. Enter voice chat
  2. .play https://www.youtube.com/watch?v=pFcv4NIuqvU
  3. No music starts to play

Expected behaviour:

  1. Enter voice chat
  2. .play https://www.youtube.com/watch?v=pFcv4NIuqvU
  3. Music play from a bot.

When you start it with a search but then add the song with .play it works so it's just when you start the bot with a URL.

nlaha commented 6 years ago

This is caused by the music bot trying to call playSong(); before the song is added to the queue. Something probably related to ytdl taking longer to get info than ytsearcher.

nlaha commented 6 years ago

see b1e06bf0b775ae2068a4bf01707ba2d89a1cbd69