twin / discord-music-bot Goto Github PK
View Code? Open in Web Editor NEWMinimal Discord music bot in Go
License: Apache License 2.0
Minimal Discord music bot in Go
License: Apache License 2.0
It would be good if there were SoundCloud support available, since youtube-dl
already supports that.
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)
responses like:
bot to join the voicechannel i am in and start playing the music
v1.0.2
Running it inside a Kubernetes Cluster, just like https://github.com/eritislami/evobot
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
No response
start
query
returned error
No response
No response
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:
Can you help me ?
No response
No response
No response
No response
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
"
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
Find the track , join the vc I'm in and play it ?
I know I'm probably not get any support because I'm not using docker, but it's worth a try.
Tried both master branch and v1.0.3 from releases
Artix linux
6.4.14-hardened1-1-hardened
yt-dlp --version
2023.07.06
go version
go version go1.21.1 linux/amd64
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
No response
No response
No response
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.