Shupee / HAMToChat

Heartbeat, Activity and Music lyrics to Chatbox VRChat
5 stars 0 forks source link

MusixmatchClient token persistence #1

Closed Eimaen closed 1 year ago

Eimaen commented 1 year ago

Hi! In your code there's a problem with MusixmatchClient (yes, I'm MxmCL maintainer :)). To avoid getting timed out by Musixmatch it's much better to save token and reuse it later, rather than generating new every time your app's opened.

You already have config format, but the config instance isn't exposed anywhere except for main form, so I've implemented a small config manager that might've broken the project structure, so feel free to comment/reject the PR.

This PR adds token persistence using same config structure you already have. If you'd like to discuss the changes, contact eimaen on discord. Have a nice day 🥳!