Skip to content

Twitter Bot that tweets a random song from followed artist per hour.

Notifications You must be signed in to change notification settings

ChunAllen/Spotify-Caster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotifycaster

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.

Stacks

  • Rails 4.1.6
  • ruby 2.1.4p265
  • Sass
  • Rspec3
  • Node.js
  • Twitter Api
  • Spotify Api
  • Bower
  • Humane JS

Features:

  1. It tweets a random song per hour.

screenshot 2015-09-05 12 57 46

  1. You can request for a random song from your favorite artist. screenshot 2015-09-05 12 55 38

Heroku Scheduler:

  • It tweets a random song per hour
  • Responds to requested mentions every 10 minutes

Installation

  • 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

Deploy

  • Add rake task to your Heroku Scheduler:
rake tweet:random_song
rake tweet:request

Demo:

You can also check an video demo by clicking the link below: Link for Demo

Resource Links:

[Twitter] (https://twitter.com/spotifycaster)

[Web App] (spotifycaster.herokuapp.com)

About

Twitter Bot that tweets a random song from followed artist per hour.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published