Smart Replies

Words
144
Reading
1 min
Listen
Play
9y

New Features

Replies

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

  • getReplies
  • scrapeReplies
  • makeReply
  • trackSearch

The new flow for comments will look something like this:
image

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.

Now Playing

Check out the #nowplaying community and bot in action here



Posted on Utopian.io - Rewarding Open Source Contributors

Smart Replies | Ecency