Skip to content

2.8.0 - Lyric Cards

Latest
Compare
Choose a tag to compare
@allerter allerter released this 31 May 16:20
· 63 commits to master since this release

New

  • Added generating Genius lyric cards. It can be accessed from the main menu, the commands or inline. Users can either provide lyrics and let the bot find the corresponding songs and lyrics or build a custom one themselves.
  • Added new commands:
    • /song_by_lyrics: Search songs by providing lyrics.
    • /lyric_card: Get a lyric card by providing lyrics.
    • /lyric_card_custom: Build a custom lyric card.
    • /donate: The donate-to-us message.
  • Users can now send queries along with the commands. For example, when using /song, instead of sending the command, waiting for a reply, and then sending the song name, users can just send /song query and get the search results in one go. This is available for the /album, /artist, lyric_card, /song, and the /user commands.

Changes

  • Limited annotated song lyrics and the album lyrics feature to developers. These two features are expensive and will surely make the user bot hit Telegram's flood limits. And in the case of song lyrics, users may not even need the annotations and just want the lyrics themselves.

Meta

  • Set bot's commands from the bot.
  • Used telethon.utils.split_text to split lyrics. This method is cleaner and safer than the previous solution.
  • Don't set up the notification handler from notifiers when env.LOG_LEVEL is set to DEBUG.
  • Added default values when setting up the Recommender class in case the GTR API is unresponsive.
  • Opened GH workflow to all branches.
  • Updated and bumped all dependencies.
  • Env vars are now set by tox instead of being set in the workflow. This will make sure tests pass on new machines too.
  • Added lyricsgenius wheel to ext to avoid cloning its git repo every time the requirements are installed. This wheel was made from the same branch that used to be cloned and installed.
  • Formatted imports using isort and added it to the checks.