all repos — disgord @ 9377cb25dc3ee81ecdad1b30e225809482537a1a

A simple Discord bot in Go.

minor bugfix
Marco Andronaco andronacomarco@gmail.com
Sun, 27 Oct 2024 21:28:57 +0100
commit

9377cb25dc3ee81ecdad1b30e225809482537a1a

parent

16f4e50c22c4a5c266d06cb398d1eb66438c6d28

1 files changed, 0 insertions(+), 6 deletions(-)

jump to
M src/music/video.gosrc/music/video.go

@@ -1,8 +1,6 @@

package music import ( - "strings" - gl "github.com/birabittoh/disgord/src/globals" "github.com/kkdai/youtube/v2" )

@@ -11,10 +9,6 @@ func getVideo(args []string) (*youtube.Video, error) {

video, err := yt.GetVideo(args[0]) if err == nil { return video, nil - } - - if !strings.HasPrefix(err.Error(), "extractVideoID failed") { - return nil, err } id, err := gl.Search(args)