maxcutlyp / YoutubeBot

A self-hosted Discord bot for playing YouTube videos
51 stars 26 forks source link

queue Command #2

Closed KS-HTK closed 2 years ago

KS-HTK commented 2 years ago

Hey, i added a .queue aka .q command to be able to view the current playback queue.

The bot responds with an embed containing a list of titles.

README.md has been updated accordingly

More Info: To accomplish this i had to store the titles together with the path to the file. I chose to store the info object of the video, this allows for access to all info of a video and will be useful for further expansion.

Embeds in Discord have a color band at the side, this color can be customized. To allow for color customization in the bot i added a BOT_COLOR line to the .env file. This excepts 2digit per color (R,G & B) hex values. Example: ffaa11 where red = 255(ff), green = 170(aa) and blue = 17(11) I set the default color for this to red, as all embeds of youtube links have a red band as well.

maxcutlyp commented 2 years ago

Reading the code, this all looks great. If you've tested it and it works in your server, I'm happy to merge it.

KS-HTK commented 2 years ago

Yes, this is tested and working.

EDIT: I am using it with some more modifications to support the app commands. But I am still learning that process and am not yet happy with some of those changes. A PR for those changes will have to wait a little longer...

maxcutlyp commented 2 years ago

Okay, nice. Merged. I look forward to the next PR :)