Twitter Bot that tweets a random song from followed artist per hour.
Used ruby on rails app here instead of plain ruby, becuase I'm saving the tweets and determine whether it was mentioned or unmentioned.
- Rails 4.1.6
- ruby 2.1.4p265
- Sass
- Rspec3
- Node.js
- Twitter Api
- Spotify Api
- Bower
- Humane JS
- It tweets a random song per hour.
- It tweets a random song per hour
- Responds to requested mentions every 10 minutes
- Clone the project:
git clone [email protected]:ChunAllen/Spotify-Caster.git
- Copy secrets.yml.template and fill up Twitter and Spotify Credentials:
cp config/secrets.yml.template config/secrets.yml
- Fill Up Spotify and Twitter Api Credentials in config/secrets.yml
default: &default
TWITTER_CONSUMER_KEY: ''
TWITTER_CONSUMER_SECRET: ''
TWITTER_ACCESS_TOKEN: ''
TWITTER_ACCESS_TOKEN_SECRET: ''
SPOTIFY_CLIENT_ID: ''
SPOTIFY_CLIENT_SECRET: ''
- Deploy to Heroku
- Add rake task to your Heroku Scheduler:
rake tweet:random_song
rake tweet:request
You can also check an video demo by clicking the link below: Link for Demo
[Twitter] (https://twitter.com/spotifycaster)
[Web App] (spotifycaster.herokuapp.com)