v0.9.1
Pre-release
Pre-release
This release is intended to replace the now-yanked v0.9.0, which due to improper merging did not contain any of the intended changes.
Overview
- Vote-skipping is now supported, optionally requiring a minimum number of users (a percentage of
the channel or an exact count) to use-skipbefore the current track is skipped. (#16)- To use it, add the
[vote_skipping]table to yourlydian-config.tomllike below and adjust
the values as desired.
- To use it, add the
[vote_skipping]
enabled = true
threshold_type = "percentage"
percentage = 50
literal = 3Added
- Added debug console command
debug store - Added debug bot command
-dropdown(methodcogs.debug.DebugCog.dropdown()) - Added module
help - Added constant
const.DOCSTRING_PARAM_REGEX - Added constants
const.GH_CHANGELOG_WEBandconst.GH_CHANGELOG_RAW - Added constants to
const:MD_HEADER_REGEXMD_H1_REGEXMD_H2_REGEXMD_H3_REGEX
- Added enum members
const.EmojiStr.BACKandconst.EmojiStr.GEAR - Added classes
cogs.util.ArrowButtonsViewandcogs.util.DropdownView - Added class
cogs.voice.VoteSkip - Added attribute
cogs.voice.MediaItem.user_idto replace.user - Added method
console.LydianConsole._debug_evaluate_in_context() - Added functions to
cogs.util:cog_emoji()command_signature()paginated_message()
- Added functions to
util:cog_commands()getclass()get_text_sections()mention()
- Added pytest fixtures
mock_botandmock_discord_user
Changed
util.dirsize()now only counts file sizes and ignores directoriescogs.voice.MediaItemobjects now store who queued the item as theirintuser ID rather than
the actualdiscord.Memberobject, which allows them to be deep-copied- Moved
update.GH_API_ROOT,update.GH_REPO_API_ROOT, andupdate.USER_AGENTtoconst- Value of
USER_AGENTupdated to use the package's name instead oflydian-update-checker
- Value of
- Swapped arguments of
util.first_where()to make the predicate first, matching built-ins like
mapandfilter
Removed
- Removed attribute
cogs.voice.MediaItem.user, (replaced by.user_id)
Fixed
- Fixed
cogs.voice.MediaItemobjects always refreshing when advancing queue if their
thumbnail_urlattribute is truthy (incorrectly wrote
(not item.duration) or (item.thumbnail_url)instead of
(not item.duration) or (not item.thumbnail_url)) - Fixed
ZoneInfonot working correctly on systems without an IANA database by includingtzdata
as a dependency