NerdyTechy / Melody

Discord music bot with many useful commands and effects.
ISC License
91 stars 28 forks source link

[BUG] Failure on playback (updated ytdl-core) #347

Closed 0-H4LO-0 closed 2 months ago

0-H4LO-0 commented 2 months ago

Describe the bug When prompted with a plain text prompt, the bot joins the voice channel, hangs for 5 seconds, then leaves, saying the a player error occured, being "Unknown Interaction".

To Reproduce Steps to reproduce the behaviour:

  1. Run bot from npm run start in terminal
  2. Use /play, followed by a plain text query (ex: I wonder - kanye)
  3. Bot attempts to load song, fails, exits vc and exits with an error (the link does not work so im pasting it here)

[Melody] ERROR: An error occurred whilst attempting to execute a chat input command: [Melody] ERROR: DiscordAPIError[10062]: Unknown interaction

Expected behaviour Bot plays music without exiting vc prematurely before loading song.

Actual behaviour Bot exits vc after being prompted to play a track via plain text.

Screenshots image

Log File A log file was not generated. (Yes i checked the directory)

Additional context This was run on bare metal Win 11, meeting all requirements.

0-H4LO-0 commented 2 months ago

Somehow the issue fixed itself???

NerdyTechy commented 2 months ago

Unfortunately issues like this can be rather tempremental, and may just appear and disappear randomly - If it happens again let me know and I can take a closer look at it!

0-H4LO-0 commented 2 months ago

I'll let you know if it happens again, it hasn't happened since though and has been working flawlessly! I'm unsure of what caused it in the first place so if it does happen again, I'll try to make my own log for it if it doesn't generate one for me.