Closed Abracadabra-7 closed 1 year ago
What are you changing? It already works fine, for me at least.
This is his second change.
What's wrong with Musixmatch?
lyrics-finder
was phased out because of its unreliability.
That's why u will only find it in v4
We're moving forward not backwards pal
The command first creates a loading embed and sends it as a reply to the interaction. It then checks if there is a music player currently playing and sends an error message if not. If no song name is provided as an option, it gets the current song title from the music player and removes some common keywords using a regular expression. It then uses the "lyrics-finder" library to search for the lyrics of the song. If no lyrics are found, it sends an error message to the user with a tips button. If lyrics are found, it creates a MessageEmbed object with the lyrics and sends it to the user with a tips button. If the lyrics are too long, it truncates them to fit within Discord's character limit. The command also sets up a collector to handle button clicks on the tips button, which sends a message with tips on how to find lyrics for songs.