My Twitter feed includes real humans, and also some bots. Some of my favorites are @hamilbots, @yayfrens, @softlandscapes, and @generativebot.
Iāve worked at Twitter for about a year and I hadnāt written a bot before! So I gave it a try, and wrote @BingoBits and @DailyOblo.
Cheap Bots Done Quick
Cheap Bots Done Quick is a really neat site that makes it almost trivial to write your first Twitter bot.
Bots are written in Tracery, a generative grammar specified as a JSON string. Hereās an example bot:
{ "origin": ["this could be a tweet", "this is #alternatives# tweet"], "alternatives": ["an example", "a different"] }
See? Pretty simple! No worries about hosting, logic, etcā¦
@DailyOblo
SET-inspired bot that tweets a game board once a day.
(oblo means āgroup of thingsā in Esperanto, aka a SET.)
I generated the SVGs, as well as the Tracery formatting, with some super-hacky Python code. Source is at cheapbotsdonequick.com/source/dailyoblo.
@BingoBits
Scrabble bot that tweets part of a 7- or 8- letter bingo once a day. (i.e. itāll tweet 6 letters of a 7 letter word, or 7 letters of an 8 letter word.) Word lists from the Seattle Scrabble Club.
This required basically no programming, just a bit of awk to extract the words from the files above. Source is at cheapbotsdonequick.com/source/BingoBits.
My favorite part of this one is that Iām actually engaging with it! Iāve been trying to memorize more bingos lately - and get better at spotting potential ones - so having them randomly scattered through my Twitter feed is pretty great.
TLDR; CheapBotsDoneQuick is cool
Cheap Bots Done Quick makes it super-easy to write a Twitter bot! If you havenāt tried it yet, you should!
Next I should figure out how to actually host my own. ;)