A simple Twitter bot made in PHP that tweets random lyrics from a chosen artist
- Create a Twitter app with your bot's account
- Set access tokens in a
twitterCredentials.phpfile in the root folder
- Go to Lyrics Wikia and find the desired artist's page, copy the URL
LyricsBot.phpto the artist's lyrics wikia page URL you found
- Create a CRON Job that runs
LyricsBot.phpwhenever 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.
The source code of this bot is available under the terms of the MIT license.