A Twitter Bot in One Line of Code

Yep! It really IS possible with only one line of BASH (Terminal) code using the new Twitter Streaming API. Using a series of chained commands, this Twitter Bot listens for occurrences of ‘one line’ in the Twittersphere and will follow that person.

Here’s a version with some extra space for readability (does not really work with this extra space):

Note: This is just to display how more easy and easy it is to write bots/agents. Yes, this code consists of multiple commands and is over 400 columns. No, I don’t believe in measuring any software in LOC.

Note2: Many years ago I also wrote an IRC client in BASH