I’ve been playing around with the Twitter API this weekend, and put together a small Twitter bot.

This is my first attempt at something like this, so there will be errors.

It is a bot that reacts to content, and tweets @ replies to those tweeting the correct “triggers”. As of now it reacts to the following commands;

  • #testbot
  • #jokebot
  • #silencerunebot

#testbot simply replies with the fact that your account works, and that you are not on its blocklist.

#jokebot replies with a one-liner joke.

#silencerunebot places your twitter handle in its blocklist, and confirms the action. After that the twitter handle will not be responded to.

There are also some “hidden” features, and I’ll maybe add some more features along the road.

So go ahed and tweet to it! Just create a tweet with the hashtag jokebot (#jokebot) and get a laugh(?). Almost like the old dial-a-joke systems from way back when.

Any questions or comments? Please let me know in the comments section below!

--
Rune