Skip to content

WhiteFangs/TwitterLyricsBot

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

TwitterLyricsBot

A simple Twitter bot made in PHP that tweets random lyrics from a chosen artist

Install

  • Create a Twitter app with your bot's account
  • Set access tokens in a twitterCredentials.php file in the root folder
  • Go to Lyrics Wikia and find the desired artist's page, copy the URL
  • Set $artistWikiaLink variable in LyricsBot.php to the artist's lyrics wikia page URL you found
  • Create a CRON Job that runs LyricsBot.php whenever you want your bot to tweet

How it works

The program goes to the Wikia page of the chosen artist and picks a random song, then takes an excerpt from the song's lyrics and tweets it.

Example

@MancOrchSays and @BiffySays are Twitter bots that tweets random lyrics from Manchester Orchestra and Biffy Clyro.

License

The source code of this bot is available under the terms of the MIT license.

About

A Twitter bot that tweets random lyrics from a chosen artist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages