www.twitter.com/PhishCompanion
The Helping Friendly Book is a Java Spring Boot application deployed to Heroku that runs the Helping Friendly Bot (@PhishCompanion) account on Twitter. It does 4 main things:
-
Listens to another Twitter account, @Phish_FTR, which tweets the song name as soon as Phish plays it live. When it finds a song name, it goes to phish.net to look up additional stats about the song and tweets that.
-
Posts a “Show On This Day” once per day at 11AM PT. This tweet is threaded and includes the date, location, setlist and setlist notes of the random selected show on this day.
-
Posts a #Pick5 on show days -- HFB uses an algorithm to find five songs that are likely to be played and tweets them out before the show starts.
All data is pulled from phish.net.
Helping Friendly Book has some other features that leverage the Twitter API:
- Favoriting a tweet (this is used to like @Phish_FTR’s tweets)
- Following users that like another users tweet
- Unfollowing users that don’t follow back
- Threaded tweets (tweets with replies)
./gradlew build
./gradlew bootRun
docker build . -t helpingfriendlybook
docker run helpingfriendlybook