Skip to content

Releases: dxnter/lasty

2.4.2

27 Nov 17:11
Compare
Choose a tag to compare

Fixed

  • Development code was sending the Weekly Recap every minute.

2.4.1

27 Nov 17:08
Compare
Choose a tag to compare

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

12 Nov 04:02
Compare
Choose a tag to compare

Added

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 the help command.

2.3.0

09 Nov 01:09
Compare
Choose a tag to compare

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

26 Oct 18:49
Compare
Choose a tag to compare

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 to src/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 of src/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 in config.json.

2.2.0

25 Oct 16:08
Compare
Choose a tag to compare

Added

  • cover command to fetch the album cover of a supplied album or of the track you're currently listening to.

2.1.1

24 Oct 05:09
Compare
Choose a tag to compare

Fixed

  • ,recent command returns a list of 10 tracks instead of 11.
  • Fetching data for tracks in different characters, such as Russian, no longer returns an error.

2.1.0

24 Oct 04:45
Compare
Choose a tag to compare

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 in Discord.MessageEmbed is handled in the respective command files.

2.0.2

23 Oct 21:27
Compare
Choose a tag to compare

Fixed

  • npm start script not working on operating systems besides Linux.

Added

  • cross-env to set the correct environment variable for production.

2.0.1

23 Oct 16:36
Compare
Choose a tag to compare

Fixed

  • My hardcoded Discord User ID was removed from the client configuration.
  • README was fixed with updated instructions on how to get a Discord User ID.

Added

  • New OWNERS property in config.example.json to add Discord User IDs.