Automatically show "now playing" when a new track starts #1010
+56
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request...
Description
This PR adds a bot setting
autonowplaying
that will make the bot automatically send a "now playing" text message when a new track starts, for any guild that has configured a text channel using thesettc
command. The setting defaults to off.If
npimages
is true then the now playing message will not include a progress bar since it will always be at 00:00 and will never update.Purpose
For communities that want to see what the currently playing track is in their text channel's messages, similar to other music bots.
This provides another mechanism for users to easily see what the currently playing track is and, in particular, when the track changes. Aside from users preferring this method, this could also be useful for use cases where it's not possible to set the bot's status or not feasible to set the channel's topic (for example due to not having permission from the server or due to Discord's rate limiting).
Relevant Issue(s)
#353