Giter Site home page Giter Site logo

discord-music-bot's People

Contributors

twin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

discord-music-bot's Issues

Add SoundCloud support

It would be good if there were SoundCloud support available, since youtube-dl already supports that.

Not playing any song (v1.0.2)

Describe the bug

I tried the Bot today (latest docker image, v1.0.2), and unfortunately i don't get it to play any song.

For (probably) short songs like !play what is love, i only get Unable to find video for query what is love: timed out as response.
Not much more info in the server logs.

for most likely longer songs (which is a surprising amount when searching on youtube. many videos are 1 hour or longer with multiple songs)
It gives me Unable to find video for query epic music: failed to unmarshal video metadata: unexpected end of JSON input

I was able to get it to at least try to play "what is love", the bot joined but immediately left the voice channel again and said it finished. But that was a single occurrence till now.

Restarting does not help.

Also playing youtube links directly does not work (in the hope that this might help that it does not need to search first)

What do you see?

responses like:

  • timed out
  • failed to unmarshal video metadata: unexpected end of JSON input

What do you expect to see?

bot to join the voicechannel i am in and start playing the music

List the steps that must be taken to reproduce this issue

  1. Install the Bot and add it to your Discord Server
  2. Join a Voice-Channel
  3. use a play command

Version

v1.0.2

Additional information

Running it inside a Kubernetes Cluster, just like https://github.com/eritislami/evobot

failed to unmarshal video metadata: json: cannot unmarshal number 3.0 into Go struct field videoMetadata.quality of type int

Describe the bug

2023/12/23 18:53:03 [Secret Discord Server] Unable to find video for query "this": failed to unmarshal video metadata: json: cannot unmarshal number 3.0 into Go struct field videoMetadata.quality of type int

What do you see?

image

What do you expect to see?

No response

List the steps that must be taken to reproduce this issue

start
query
returned error

Version

No response

Additional information

No response

bug: The bot connects/disconnects directly.

Describe the bug

Hi,
I have a problem when using the docker image provided from the docker hub repository.
When I launch the bot, no problem, but as soon as it finishes downloading the music and connects to the voice room to play the sound, it disconnects directly.
You can see in attachment the logs and my configuration:
Capture d’écran 2022-11-24 235207
image
image

Can you help me ?

What do you see?

No response

What do you expect to see?

No response

List the steps that must be taken to reproduce this issue

  1. docker-compose up -d
  2. all command bot work
  3. try !yt
  4. said complete, join the channel
  5. disconnect without making any sound

Version

No response

Additional information

No response

failed to unmarshal video metadata: unexpected end of JSON input

Describe the bug

Any video I try to play, using either youtube link or video name, gives me "Unable to find video for query [the video]: failed to unmarshal video metadata: unexpected end of JSON input"

What do you see?

2023/09/16 05:52:59 [server] Found user constantitus in voice channel 696092399369322606
2023/09/16 05:52:59 [server] Searching for "rick roll"
2023/09/16 05:53:00 yt-dlp ytsearch10:rick roll --extract-audio --audio-format opus --no-playlist --match-filter duration < 1 & !is_live --max-downloads 1 --output data/1694832780-%(id)s.opus --quiet --print-json --ignore-errors --no-color --no-check-formats
2023/09/16 05:53:17 [server] Unable to find video for query "rick roll": failed to unmarshal video metadata: unexpected end of JSON input

What do you expect to see?

Find the track , join the vc I'm in and play it ?

List the steps that must be taken to reproduce this issue

  • Not using docker
  • Properly set my environment variables
  • go build -buildvcs=false -a -installsuffix cgo -o bin/discord-music-bot .
  • bin/discord-music-bot
  • bot prints "Connected successfully", I attempt to play music

I know I'm probably not get any support because I'm not using docker, but it's worth a try.

Version

Tried both master branch and v1.0.3 from releases

Additional information

Artix linux
6.4.14-hardened1-1-hardened
yt-dlp --version
2023.07.06
go version
go version go1.21.1 linux/amd64

state cache not found

Describe the bug

Cannot play anything, it throws this error:
state cache not found
or if i search for a song it says:
Unable to find video for query "what is love": timed out
Do i need to configure something else? thx

What do you see?

No response

What do you expect to see?

No response

List the steps that must be taken to reproduce this issue

  1. tried to build image locally
  2. tried to pull image from docker, same thing happens...

Version

No response

Additional information

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.