RafaelSolVargas / Vulkan

A Discord BOT to play music from Youtube, Spotify and Deezer
MIT License
96 stars 30 forks source link

Bot goes to "sleeping" state immediately after starting playback #55

Closed qeewpi closed 1 year ago

qeewpi commented 1 year ago

Describe the bug: Upon invoking the play command, the bot initiates the playback process but immediately transitions to the "sleeping" state, preventing the song from playing.

To Reproduce: Steps to reproduce the behavior:

  1. Start the bot.
  2. Invoke the play command for any song or audio source.
  3. Observe that the bot starts the playback process.
  4. Notice the bot immediately goes to the "sleeping" state.

Expected behavior: The bot should play the song/audio source completely and then possibly transition to the "sleeping" state after the song is done or after a period of inactivity.

Logs:

Starting Vulkan...
Vulkan is now operating.
Starting Player Process for Guild [serverName]
[PROCESS PLAYER -> CONNECTING TO VOICE CHANNEL]
Player Process [serverName] received command VCommandsType.PLAY
Process [serverName] sended command VCommandsType.NOW_PLAYING
Process [serverName] sended command VCommandsType.SLEEPING

Environment: OS: Windows 11 Python version: 3.11.4 Modules installed by pip:

Package             Version
------------------- ---------
aiohttp             3.8.3
aiosignal           1.3.1
asgiref             3.7.2
async-timeout       4.0.2
attrs               22.2.0
autopep8            2.0.1
Brotli              1.0.9
certifi             2022.12.7
cffi                1.15.1
charset-normalizer  2.1.1
deezer-python       5.3.3
Django              3.2.7
django-crispy-forms 2.0
djongo              1.3.6
dnspython           2.3.0
ffmpeg-python       0.2.0
frozenlist          1.3.3
future              0.18.3
idna                3.4
imageio-ffmpeg      0.4.8
multidict           6.0.4
mutagen             1.46.0
numpy               1.24.1
pip                 23.2.1
py-cord             2.4.1
pycodestyle         2.10.0
pycparser           2.21
pycryptodomex       3.16.0
pymongo             3.12.1
PyNaCl              1.5.0
python-decouple     3.5
pytz                2023.3
requests            2.28.2
setuptools          65.5.0
six                 1.16.0
spotipy             2.19.0
sqlparse            0.2.4
tomli               2.0.1
typing_extensions   4.0.1
urllib3             1.26.14
websockets          10.4
yarl                1.8.2
yt-dlp              2023.2.17
RafaelSolVargas commented 1 year ago

Hello! This error occurs in the yt-dlp library, but they already fixed it! Update your version with pip install yt-dlp --upgrade

qeewpi commented 1 year ago

That fixed the issue. Thanks!

darnells68 commented 1 year ago

Thanks very much I updated the yt-dlp it working now