Skip to content

gahtv/jamLyricBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jamLyricBot

A Twitter bot that posts lyrics from any given Spotify playlist (or in this case, this one)

How it works

Using the Spotify, Twitter and AZlyrics API, it will first pull the number of tracks in the playlist, then will grab a random subset of 100 tracks, pick a track, and use grab the lyrics for said track. It will then remove all the [Chorus], and [Verse 1] tags. It will then pick 2 random lines to post on Twitter.

Setup

  1. Clone repository
  2. Make .env file in the root folder like this
TWITTERCONSUMER=
TWITTERCONSECRET=
TWITTERACCESS=
TWITTERACCSECRET=
SPOTIFY=
SPOTIFYSECRET=
  1. Fill in with your API keys
  2. Change playlist ID
  3. Run!

Bugs

Nothing right now - although I do probably need to prettify my code.

About

A lyrics bot for Twitter for a Spotify playlist

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages