follow-u-tron

Automating #followfriday

This little programme allows me to manage a list of people that I follow on Twitter whom I feel that others might also to follow as well. When invoked without any parameters, it will draw a random name from the list and post a #followfriday message to Twitter.

The idea is that I just maintain the list and have this running on a cron job every Friday. Picks are random so the same person may be picked more than once in a row.

Thanks to @elpie for reminding me of what day Friday is in cron-speak!

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License. Use it at your own risk, don’t blame me if it eats your computer, causes a Global Economic Meltdown (too late, someone’s already done that, thanks GWB,) etcetera.

The Code

Several attempts were made to copy and paste the code into this article; TinyMCE stuffed up the formatting every time, eating a load of essential backslashes. Rather than convert the whole thing to HTML entities by hand, I’ve given up and have just posted it in my files section.

Usage

Adding Members

follow-u-tron.pl @user1 @user2 @user3

Deleting Members

follow-u-tron.pl -@user2

Note that you can add and delete in the same command.

Listing Members

follow-u-tron list

Posting to Twitter

follow-u-tron

This may be put into a cron job.