Releases: dxnter/lasty
Releases · dxnter/lasty
2.4.2
2.4.1
Changed
This release has a few bug fixes but no new functionality. The main focus was on rewriting the entire project in TypeScript. Admittedly, this is the first large project I've written in TypeScript so I'm expecting there to be mistakes or bad practices. I've reached a point where I feel comfortable pushing out a release and will continue to refactor existing code going forward.
Fixed
- Tracks without extended metadata for
,np
will now properly send instead of returning an error.
2.4.0
Added
whoknows
command to rank the top listeners of an artist on the server.wkalbum
command to rank the top listeners of an album on the server.wktrack
command to rank the top listeners of an track on the server.
Check the wiki for command aliases and more information
Changed
np
fields will display inline if the track title is less than 25 characters and separate fields otherwise.- Lasty will be shown as typing for commands that make requests to the Last.fm API.
- Created a function to encode URL's in Utilities and removed repetitive code to remove parenthesis in some commands.
Fixed
cover
command was displaying incorrectly in thehelp
command.
2.3.0
Added
grid
command to generate album covers for top scrobbled albums in a time period. Check the wiki for help.- try/catch when calling
init()
on the client for error handling.
Fixed
- Incorrect formatting in the
help
embed.
Changed
- The layout of "Track" and "Artist" on the
np
embed is now inline. assets/images/discord_avatar.png
was changed.
2.2.1
Fixed
- The album cover of the song being listened to will correctly be sent when executing
,cover
without additional arguments. - Tracks without an album cover available will return an "Album Cover Not Found" image instead of an empty embed.
Changed
src/utils/validateToken.js
was deleted and added tosrc/structures/Utilities.js
.src/assets/discord_avatar.png
was changed, still needs to be adjusted in the future.- Weekly Recap will return an error if a user has not listened to any tracks in the past 7 days.
Added
src/tructures/Client.js
to contain all CommandoClient configuration and additional properties.src/structures/Utilities.js
as a replacement ofsrc/utils/index.js
. Client inherits Utilities so that all methods are easily accessible within command files.EMBED_COLOR
to config.json to easily change all colors of embeds that Lasty returns.Utilities.validateEmbedColor()
is executed at lauch to ensure a proper hex color code is configured inconfig.json
.
2.2.0
2.1.1
2.1.0
Fixed
- Fixed Weekly Recap from returning undefined. API functions were refactored a few versions ago and the arguments were swapped. The past few updates all had this critical bug.
Changed
src/api/last.fm
was becoming too crowded and the functions were responsible for too many actions. API functions now strictly return data and the formatting of data inDiscord.MessageEmbed
is handled in the respective command files.