This pull request includes the architecture for replying to comments. It introduces a few new ideas, such as parsing a post tree and searching spotify's api for a given song. New code includes
getRepliesscrapeRepliesmakeReplytrackSearchThe new flow for comments will look something like this:
This allows songs to be added to the playlist automatically, and it gives the user a link directly to the spotify track. Improvements are needed in the future such as error handling and handling more than one track at a time.
A new database column children has been added to keep track of how many comments have been made on a given post. Only posts with a change in children will be looked at when scraping replies.
Check out the #nowplaying community and bot in action here