Twitter Prime Follower Bot

What is the “PrimeFollower” bot? User @DHAhole tweeted:

” Can somebody write a bot that notifies me when the number of followers I have is only divisible by 1 and itself? I’d like to thank that follower for choosing prime membership. “

I know it is a pun, and it is very funny. What I enjoy more about it is that I don’t have a lot of experience writing twitter bots, and I needed something to stretch my Python skills a bit. So I wrote a bot that will do exactly what @DHAhole asked.

I plan on making it a bit interactive as well in that any user can ‘subscribe’ to the bot to be notified when their follower count is a prime number.

The bot will check about every minute or so and go through everyone who has ‘subscribed’ to the bot and check their follower count, determine if it is a prime number or not, and if it is will post a tweet mentioning them, and telling them who their last follower is. Something like this:

@DHAhole, your follower count is a prime number! Your last follower was @Mr_Hobbits!

Once it’s working the way I want it to, I’ll post the source on GitHub. Feel free to make any comments or suggestions (features, how I can improve it, questions too).