all repos — disgord @ cf05b999c70e36d5bf89c4e18ef7d21ac96dbe05

A simple Discord bot in Go.

fix go version
Marco Andronaco andronacomarco@gmail.com
Sun, 10 Nov 2024 21:56:28 +0100
commit

cf05b999c70e36d5bf89c4e18ef7d21ac96dbe05

parent

a4197f60d9e6e9fcffec6c8915285f56cf50e482

2 files changed, 5 insertions(+), 2 deletions(-)

jump to
M go.modgo.mod

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

module github.com/birabittoh/disgord -go 1.23.1 +go 1.23 require ( github.com/FoxeiZ/dca v0.0.0-20240420115706-e4859a963796
M src/music/queue.gosrc/music/queue.go

@@ -56,7 +56,10 @@ // AddVideos adds a list of videos to the queue

func (q *Queue) AddVideos(videos []*youtube.Video) { q.items = append(q.items, videos...) if q.nowPlaying == nil { - q.PlayNext() + err := q.PlayNext() + if err != nil { + logger.Error(err) + } } }