-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Music Player - Button Controls & Volume Command #705
Conversation
dang it forgot now playing |
This should be ready for Review Would like to merge this before #698, As I will need to resolve some self created merge conflicts between these Pr's <3 Note: I am aware that the Players Embed Color may be green after updating from previous version. This is only temporary, it will sort its self out after a few minutes Much Love |
Removed unused MessageButton From NowPlayingEmbed Also Delete Embeds on button press If player is not running
was in buffer
@galnir, I have a question, shouldn't the i ran into this when setting up my Raspi Pi's for testing and setup instructions and noticed i had to wipe an existing DB twice Much Love |
bugfix - resuming from button no longer causes a crash when paused for longer than the songs remaining time pausing from buttons for longer than 30 mins the bot will leave channel
I've read it shouldn't be ignored by Git but in this case it should, so yeah |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are many changes so it'll take me some time to review everything, but a couple comments:
- Is it possible to extract the button logic from now playing command and ExtendedClient to a function under utils/ ?
- Line 192 in now-playing.ts is an unreachable return statement
Side question have you run into something I'm calling phantom command data. Like if I make a change to a command and restart the bot to load the changes, I will get back the previous version in discord, but console log shows the current version data. I have now run into this a few times now and it makes it difficult to debug when the changes are not represented correctly. Issues range from bogus "interaction already been replied to" (I removed them all and still got this message), to the Embed data being random( like shortly after updating my pi to this pr the embed colors were green for 2 hours) there isn't any green in this pr. It has me stretching my head Much Love |
currently having to run prototype commands on new Discord Client_id's to make sure no Cached Data my main(Pi 4 Raspian), it's correct (took few hours to fix its self only had 2 changes to the commands) Much Love |
allows for the topic to match the the song title becomes a speaker auto-magically
Apologies for the last second addition it automates becoming a speaker and creating an instance if one is not available |
corrected the permissions needed for Stage Channel create as per Discordjs Docs
prevent the Topic from exceeding 120 characters
I'm quite sure adding the guild id in the command registry options solves it:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice work, tested it and it works well 💯
It would be even better if you could find a way to disable or remove the buttons if a user uses /leave instead of hitting a button, but no pressure on that, maybe I will do it myself
currently it should delete an open Player Embed when a button is pressed after the music player has been disconnected, i had to or i would get a console error i can look into actively deleting the message when /leave, /Skip, /Skipto commands are used Much Love |
npx prisma migrate dev
)Users
Info into Track Info to show who requested the track with avatarButtons are only usable by members in the same voice channel as the bot
Player embeds are self deleting when song is done or 30 mins has elapsed
you can bring back the buttons with
/now-playing
Edit: TIL it can also play Twitch(livestream only), and SoundCloud audio sources ...... Nice!
Current State - YouTube
Tested on
Windows 10 (Local)
Raspberry OS 64Bit (arm64/Local)
Debian 10 (Arm64/Local)
Much Love
-Bacon