Code Monkey home page Code Monkey logo

yadmb's People

Contributors

danyev3 avatar mpldr avatar negezor avatar nothexadecimal avatar slashtube avatar thetipo01 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

yadmb's Issues

Docker, unable to open database file: out of memory

YADMB Release 0.15.0 on Ubuntu 22.04.1 LTS

Cloned the repo git clone https://github.com/TheTipo01/YADMB.git

Created a config.yml based on sample and placed into data folder

Ran docker-compose up -d to run in background.

Check logs and:

2023-06-16 22:05:05 [LIT0] main.go:49:0() youtubeapikey: required validation failed
2023-06-16 22:05:05 [LIT0] main.go:147:main() No token provided. Please modify config.yml

Seemed Youtube API key is required, not just recommended.
Anyways got a API key, removed the container, and tried to remake it. Check logs and:

2023-06-16 22:10:40 [LIT0] utilities.go:15:ExecQuery() Error executing query, unable to open database file: out of memory (14)
2023-06-16 22:10:40 [LIT0] utilities.go:15:ExecQuery() Error executing query, unable to open database file: out of memory (14)
2023-06-16 22:10:40 [LIT0] utilities.go:15:ExecQuery() Error executing query, unable to open database file: out of memory (14)
2023-06-16 22:10:40 [LIT0] utilities.go:15:ExecQuery() Error executing query, unable to open database file: out of memory (14)
2023-06-16 22:10:40 [LIT0] utilities.go:15:ExecQuery() Error executing query, unable to open database file: out of memory (14)
2023-06-16 22:10:40 [LIT0] main.go:95:0() Error loading blacklist: unable to open database file: out of memory (14)
2023-06-16 22:10:40 [LIT0] main.go:101:0() Error loading DJ settings: unable to open database file: out of memory (14)

Bot crashing when using /disconnect command on Fedora 37 x86_64

Having set up everything on Fedora 37 x86_64, the bot crashes when the /disconnect command is invoked.
Below is the log:

2023-03-02 14:33:52 [LIT0] utilities.go:84:sendEmbedInteraction() InteractionRespond failed: HTTP 404 Not Found, {"message": "Unknown interaction", "code": 10062}
2023-03-02 14:33:54 [LIT0] utilities.go:249:deleteInteraction() InteractionResponseDelete failed: HTTP 404 Not Found, {"message": "Unknown Webhook", "code": 10015}
panic: runtime error: index out of range [0] with length 0

goroutine 95 [running]:
main.voiceStateUpdate(0xc0000b5880, 0xc0006bcb80)
/home/bot/YADMB/main.go:234 +0x329
github.com/bwmarrin/discordgo.voiceStateUpdateEventHandler.Handle(0x4349464954524543?, 0x455441?, {0x9cfee0?, 0xc0006bcb80?})
/home/bot/go/pkg/mod/github.com/bwmarrin/[email protected]/eventhandlers.go:1228 +0x38
created by github.com/bwmarrin/discordgo.(*Session).handle
/home/bot/go/pkg/mod/github.com/bwmarrin/[email protected]/event.go:171 +0x16a

No song plays

Can't get info about song: OSError: Cannot load native module 'Cryptodome.Cipher._raw_ecb': Not found '_raw_ecb.cpython-38-aarch64-linux-gnu.so', Cannot load '_raw_ecb.abi3.so': /snap/yt-dlp/19/lib/python3.8/site-packages/Cryptodome/Util/../Cipher/_raw_ecb.abi3.so: cannot open shared object file: No such file or directory, Not found '_raw_ecb.so'

i am using raspberry pi

[feature request] Add support DJ role

Hello. How about adding support for the DJ role? It would make my life much easier. I constantly have to add people to the blacklist in the morning who abuse the bot queue.

feature request: preload

been using this bot for dnd and roleplay sessions. would be cool to have a command fpr preloading a song or playlist without having to play them immediately.

Out of range when trying to play a playlist.

Playlist: https://www.youtube.com/watch?v=oPxE4fuds94&list=PLf7kEBkHe1Cg2Ss1SqxG1fQEwQLlGboKF

panic: runtime error: index out of range [22] with length 22

goroutine 9 [running]:
github.com/TheTipo01/YADMB/youtube.(*YouTube).GetPlaylist(0xc0007d20f8, {0xc0007f2331, 0x22})
       /app/youtube/youtube.go:75 +0x7c5
main.downloadAndPlayYouTubeAPI(0xc000111180, {0xc0005e8d08, 0x12}, {0xc0007f2300, 0x53}, {0xc0000b8fc0, 0x7}, 0xc0003fc160, 0x0, 0x0, ...)
       /app/download.go:166 +0x118
main.downloadAndPlay(0xc000111180, {0xc0005e8d08, 0x12}, {0xc0007f2300, 0x53}, {0xc0000b8fc0, 0x7}, 0xc0003fc160, 0x0, 0x0, ...)
       /app/download.go:52 +0x4fd
main.play(0xc000111180, {0xc0007f2300, 0x53}, 0x2?, {0xc0005e8d08, 0x12}, {0xc0000b8fc0, 0x7}, 0x28?, 0x0, ...)
       /app/wrapper.go:22 +0x78e
main.playCommand(0xc000111180, 0xc0007d21a0, 0x1)
       /app/commands.go:763 +0x691
main.glob..func2(0xda5f60?, 0xc0004f6e40?)
       /app/commands.go:273 +0x1e
main.main.func1(0xc000111180, 0xc0007d21a0)
       /app/main.go:179 +0x2d2
github.com/bwmarrin/discordgo.interactionCreateEventHandler.Handle(0xc0003e07d0?, 0x6cd78a?, {0xde4a00?, 0xc0007d21a0?})
       /go/pkg/mod/github.com/bwmarrin/[email protected]/eventhandlers.go:693 +0x38
created by github.com/bwmarrin/discordgo.(*Session).handle
       /go/pkg/mod/github.com/bwmarrin/[email protected]/event.go:171 +0x16a

yadmb_bot_1 exited with code 2

Document process of adding the bot

Hi there o/

I am not sure what permissions the bot specifically requires… could you help me with that?

It might also be useful to document the OAuth2 Address for those less familiar with the process :)

main.go:191:ready() Cannot create 'addcustom' command

Hi there! I'm trying to run this bot in my server - I get an initial YADMB is now running message and then about 40s later I'm getting:

2021-10-17 08:41:58 [LIT0] main.go:191:ready() Cannot create 'addcustom' command: HTTP 400 Bad Request, {"code": 50035, "errors": {"options": {"0": {"name": {"_errors": [{"code": "APPLICATION_COMMAND_INVALID_NAME", "message": "Command name is invalid"}]}}}}, "message": "Invalid Form Body"}
2021-10-17 08:41:58 [LIT0] main.go:191:ready() Cannot create 'rmcustom' command: HTTP 400 Bad Request, {"code": 50035, "errors": {"options": {"0": {"name": {"_errors": [{"code": "APPLICATION_COMMAND_INVALID_NAME", "message": "Command name is invalid"}]}}}}, "message": "Invalid Form Body"}

The bot doesn't seem to add any of the slash commands. If this were a permissions issue, I'd expect it to say something more informative?
go version go1.16.5 linux/arm64
Linux 5.11.0-1019-oracle #20~20.04.1-Ubuntu SMP Tue Sep 21 14:20:46 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

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.