TannerGabriel / discord-bot

Simple discord bot to play music and manage your server
MIT License
604 stars 407 forks source link

Playing Error #212

Closed TlMcook closed 1 year ago

TlMcook commented 1 year ago

Describe the bug Bot will play 30 seconds or so of audio (both spotify and youtube) before stopping and then disconnecting itself, no errors appear in the console.

To Reproduce Steps to reproduce the behavior:

  1. Launch the Bot
  2. Play a song
  3. Wait 30 seconds for the Bot to disconnect

Expected behavior Expected Bot to play full song and continue queue.

Screenshots (optional) image Only message displayed from either console or discord channels ^.

Desktop (please complete the following information):

Dependency versions:

cgwhouse commented 1 year ago

I am seeing the same, running on a Debian server with Node 16.19.1 and YTDL-core 4.11.2.

TlMcook commented 1 year ago

update: a complete reinstall of the program and dependencies does not fix it.

smclean117 commented 1 year ago

Same issue here, could this issue and associated "temporary fix" be related?

https://github.com/fent/node-ytdl-core/issues/1184

smclean117 commented 1 year ago

https://github.com/discordjs/discord.js/issues/9185

also here details an issue with fix but I cant locate the file to be edited and I don't know if any alterations might be needed for this bot.

smclean117 commented 1 year ago

https://github.com/TannerGabriel/discord-bot/pull/213

this fixed for me, please verify before merge.

TlMcook commented 1 year ago

Can confirm this fix worked, thanks!

TannerGabriel commented 1 year ago

Thank you for debugging and fixing the problem. I closed the issue after merging the PR since it seems to work now. If you still have the same problem, please let me know and I'll reopen the issue.