8000 The bot is spamming messages · Issue #34 · RafaelSolVargas/Vulkan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

The bot is spamming messages #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Paillat-dev opened this issue Jan 24, 2023 · 6 comments
Closed

The bot is spamming messages #34

Paillat-dev opened this issue Jan 24, 2023 · 6 comments

Comments

@Paillat-dev
Copy link
Contributor

It looks like that when loop=all is selected, at some point, it starts skipping all songs and sending each song in the queue without stopping, like if the songs were 0 seconds long.
I unforunately haven't any screenshot because I cleared the channel.

@RafaelSolVargas
Copy link
Owner

I'll try to reproduce it locally, any informations about when or how it happens will help a lot

@Paillat-dev
Copy link
Contributor Author
Paillat-dev commented Jan 24, 2023

Ok, so here are the setps to reproduce it:

  1. In the config file, set SHOULD_AUTO_DISCONNECT_WHEN_ALONE = False
  2. Play 2 songs ( the ones I played where https://www.youtube.com/watch?v=hgr4b-ve6XU&ab_channel=ArthurSena & https://www.youtube.com/watch?v=h8YZMT94rR4&t=7665s&ab_channel=smugkat )
  3. Set Loop = all
  4. Wait
  5. At some point, the bot will stop playing music and start spamming 🎧 Song playing now messages, skipping the songs like they were 0 minutes long.

@RafaelSolVargas
Copy link
Owner

How long do you usually wait until the bot gets this behavior?
I've fixed some edge issues I've run into over the past few days, but nothing that seems to be related to your issue, and looking through the code I couldn't find a situation that causes this issue.
Maybe the problem is the music source expires, songs downloaded by the Bot don't actually get downloaded, the Bot just takes a URL to a server and passes that URL to discord to play, as you can see in this code below.

8000

Maybe after some time that URL can become invalid and the music actually takes 0 seconds to play.
Can you download the commits I made over the past few days and try to find your error again?

Just for you to better understand how the execution works, look for the PlayerProcess.py file in the Parallelism folders, in this class there are two functions that call each other, __playNext() and __playSong(song)
The second tells Discord to play the song and after finishing the song it calls the __playNext function, this checks if there is another song to be played and calls the __playSong function

@RafaelSolVargas
Copy link
Owner

The problem is exactly with this url, i already uploaded a patch to fix this error, in this commit

If you got any other problems, don't mind asking

@Paillat-dev
Copy link
Contributor Author

Thanks a lot!
Great jib!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0