Skip to content
A Twitter bot that tweets random lyrics from a chosen artist
PHP
Branch: master
Clone or download

Latest commit

Latest commit 1c3e9fb Mar 1, 2018

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Good practice: add credentials in separate file May 15, 2016
LICENSE Initial commit Jul 31, 2015
LyricsBot.php Good practice: add credentials in separate file May 15, 2016
LyricsBotHelpers.php Fixed change in wikia urls Sep 9, 2015
README.md Update README.md Mar 1, 2018
TwitterAPIExchange.php LyricsBot Initial commit Jul 31, 2015

README.md

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.

You can’t perform that action at this time.