Giter VIP home page Giter VIP logo

discordbot's People

Contributors

dahl99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

raam27

discordbot's Issues

Doesn't play music

I'm just trying out the bot, it doesn't seem to work for me.

When I use the play command, it joins and prints the following:

[Music] Aloo!? hangs up has added Rick Astley - Never Gonna Give You Up (Official Music Video) to the queue
[Music] Now playing: Rick Astley - Never Gonna Give You Up (Official Music Video)
[Music] End of queue

The terminal log on my server:

2023/09/16 05:14:04 INFO processing command command="-play https://www.youtube.com/watch?v=dQw4w9WgXcQ"
2023/09/16 05:14:04 INFO bot is not in a voice channel, joining now userId=280831141945016321 username=constantitus
2023/09/16 05:14:05 INFO new voice instance created
2023/09/16 05:14:05 INFO finding video by ID videoID=dQw4w9WgXcQ
2023/09/16 05:14:06 INFO adding song to queue song="{ChannelID:693147376352755742 UserName:Aloo!? *hangs up* ID:280831141945016321 VideoID:dQw4w9WgXcQ Title:Rick Astley - Never Gonna Give You Up (Official Music Video) VideoURL:https://rr4---sn-gqn-vu2e7.googlevideo.com/videoplayback?expire=1694852045&ei=bQ8FZcmSM8qUgAfv8p2YCg&ip=2a02%3A2f0c%3A560d%3A3400%3A24e%3A1ff%3Afe9d%3A5d5c&id=o-AOT_yrwU3t-eY8B3khlI3lVuogOVDaUvi_8JLyIAO2Mv&itag=249&source=youtube&requiressl=yes&mh=7c&mm=31%2C29&mn=sn-gqn-vu2e7%2Csn-c0q7lnse&ms=au%2Crdu&mv=m&mvi=4&pl=40&initcwndbps=1316250&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=1232413&dur=212.061&lmt=1694040798737498&mt=1694829714&fvip=5&keepalive=yes&fexp=24007246%2C24362685&beids=24350018&c=ANDROID&txp=4532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgH2h0b_MUtAvWZIkxGrjbNvgVlM69-zDM8gWlfbVxumUCIFcLnJx23gV0uOK1_r8jRb3W6pcdJCc6Q-1Xy0CD_y1u&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgOfYSIYOGNVhAAA2-PAy43LsVRVDc85QpLNTKic4EQFQCIQDC9WkgjlvhaU5rWN1rhIyDq7tUj74NFbpKRDhFGl6e_Q%3D%3D}"
2023/09/16 05:14:06 INFO Getting first song from queue
2023/09/16 05:14:06 INFO song queue is empty

Also, trying to exit with Ctrl + C throws a segmentation violation

^Cpanic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xd0 pc=0x755d53]

goroutine 1 [running]:
github.com/notnil/chess/uci.(*Engine).processCommandLocked(0x0, {0x10016b8, 0xc000590498})
	/home/lambda/go/pkg/mod/github.com/notnil/[email protected]/uci/engine.go:157 +0x33
github.com/notnil/chess/uci.(*Engine).Run(0xe04820?, {0xc00050ae50?, 0x1, 0xc0000964e0?})
	/home/lambda/go/pkg/mod/github.com/notnil/[email protected]/uci/engine.go:133 +0x9d
github.com/notnil/chess/uci.(*Engine).Close(0x0)
	/home/lambda/go/pkg/mod/github.com/notnil/[email protected]/uci/engine.go:144 +0x58
github.com/Dahl99/discord-bot/internal/commands/chess.StopChessAi(...)
	/home/lambda/Downloads/DiscordBot/internal/commands/chess/ai.go:24
github.com/Dahl99/discord-bot/internal/bot.Start()
	/home/lambda/Downloads/DiscordBot/internal/bot/bot.go:39 +0x205
main.main()
	/home/lambda/Downloads/DiscordBot/cmd/discordbot/main.go:6 +0xf
exit status 2

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.