Making a twitter bot

3 01 2015

Met with George and Marie at the London Hackspace to make twitter bots.

Started out by looking at hosting the bot, first port of call

Even a simple _ebooks type bot needs to be hosted somewhere

a static IP connected constantly yo the internet

chose ruby from the options and followed the instructions to install ruby gem and bundler

i already had ruby and gem installed, we checked by opening terminal and searching for versions installing bundler was a bit tricker as I ruby and gem were install on my admin user not my day to day user (this is probably inaccurate) but I could get it to install it by typing sudo user (super user do) kinda tricking it into thinking I was the admin (which I am, just not from where i was accessing the terminal)

ERROR:  While executing gem … (Gem::FilePermissionError)

    You don’t have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

users-mbp-3:~ user$ sudo gem install bundler

installed the heroku toolbelt (by downlaoding and typing into terminal) which installed git. also need xcode which i already had

follwed instructions in th tutorial to install a demo app. typed into terminal to get to a specific folder

users-mbp-3:ruby-getting-started user$ open . 

^ is folder name              ^ is a neat ay to open the folder in the finder

opened gemfile in sublime 2 to see what gems the app will be using. The bundler sorts out actually getting all the gems – this is just a shopping list for it.

ls shows the same info in less detail in the terminal

ls -al shows more info in terminal

in this folder, I typed

 heroku create

to ‘create’ the app then uploaded it from my spanking new local git repository to heroku with

git push heroku master
 heroku ps:scale web=1

tell the server you want to run one instance of this app – scaled up from zero which is basically the difference between existing or not. (this is just the terminal version of doing the same thing in the pretty dashboard sliders on the heroku website)

Now I’ve got some free hosting, it’s time to make the twitter bot app. Then we stopped following the tutorial and moved on to making the app I’ll be pushing to heroku for real.

We start out looking at

went to git hub repository and copied it into the terminal using

sudo gem install twitter_ebooks

clone git

this created a folder local to my machine that had bots.rb in it this is the bot that I can edit to make my own bot.

I’d already downloaded my twitter archive and created a twitter account called minkbot.

I followed the instructions on

For step 5. I needed to use an account that had a phone number attached so instead of using the new @m1nkbot account I used my main twitter account.

We used to transfer the permissions over

in terminal

sudo gem install twurl

then following instructions on github

I used two browsers one with my ‘normal’ account in and the other with the bot in.

In the ‘normal’ account’s browser I went to permissions and got the key code and secret code – these replace the [key] and [secret] in the code below in terminal

twurl authorize --consumer-key [key]       \
                    --consumer-secret [secret]

This gave me a URL which I opened in the bot’s browser and got a PIN that I put back into terminal.

Looked in users-mbp-3:minkbot user$ cat ~/.twurlrc to find my tokens and keys

took the tweets.csv file from my twitter archive and put it in the corpus folder in the bot

Back to and follow the steps in 6 & 7.

back to

In sublime text 2 I edit in the key and secret from the permissions. and the tokens from the cat search.

There is an example bot here

logged back in to heroku to upload the real app.

If I ever edit this thing and make something new that I want to upload it to github, then I’ll need to create a new repository that hides my secret keys in an env

needs a gemfile.lock so used bundler to install the gemfile.lock in the minkbot local git repository in terminal.

now to edit bots.rb to try and make it do something more interesting!😀

Game Diary

3 11 2014

I just played With Those We Left Alive by Porpentine and Brenda Neotenomie. I found it from reading this article on Interactive Fiction by Leigh Alexander.

It’s a Twine game – a story set in a hellishly twisted world of fascinating nightmarish rituals. Ruled over by a monstrous Empress, in a decaying landscape you can barely glimpse, there is a lot left to the imagination and a steady trickle of revelation. The strangeness is tinged with the mundanity of boredom and self-defeat.

As you play, you are prompted at significant moments to draw symbols onto your skin. You come up with them yourself, so they have a meaning to you and make a record of the themes in the story – the story leaves a mark on you.

photo (3)

Game diary

30 09 2014

Tonight I played board games with Rob, Celia, Walden, John and Tim.

We played The Builders: Middle ages,  – a resource management game where you acquire building projects and workers then match them up to complete the buildings.

Quantum – a territory taking game with lots of dice, the dice mainly represented levels of space ship but could also be rolled to change their abilities.

and Ra. – An auction game of collecting tile sets, spurred on by the random selection of tiles from a bag.

Then when I got home, I got into a discussion about ‘what is game’? and as part of that conversation someone linked to

This game is about the power and danger of trying to ‘blend in’ and escape the ire of others. working out what harms you and how to control it are part of the gameplay.

Game Diary

24 09 2014

Tonight I played Gridlands, it’s the second game from doublespeak games who brought us A Dark Room. Gridlands is a spiritual successor to ADR in that it is a mash up of a resource gathering game and something completely different, this time round it is a match three puzzler.

There are two phases, day and night – your little character toils away during the day carting the resources you gather about and turning them into buildings.

These building upgrade your resources – during the day phase the most useful upgrade is to the food that gives your little character strength back after all that heavy lifting. Every move you make pushes the sun across the sky a little further, so getting cascades helps you gather more in the time allowed.

Screen Shot 2014-09-24 at 5.13.07 AM

Then the night phase, each resource turns into either a sword or shield for your little peon to carry or into something that summons a monster. The higher the resource had been upgraded in the day phase, the more powerful the protection or monster. Your shield and sword wear down with use so you have to keep matching. Unlike in the day phase only killing monsters pushes the moon onwards. The other factor that makes the day different from the night is that there are collectible power-up that are gathered from chest occasionally dropped by slain monsters.

Screen Shot 2014-09-24 at 5.13.37 AM

Survive the night, and all the resource tile convert back to their day phase appearance, this allows for some tactics – I chose to ignore gathering wood and metal during the day so that there would be plenty of swords and shields for me to use in the night.

Once you get about half way, the game adds a new goal, much like A Dark Room. There is a way of summoning a mini-boss and then later a final boss battle. It is also possible to max out all the building types, but there is no reward for doing so that I could see. There is a small amount of waiting around as the peon dawdles back and forth building things, but on the whole this is not a timer watching game, despite being called a ‘time-waster game’ by its creators.

Other games I played this past week:


Classic trick taking card game.


I finally got round to figuring out how to put money onto the Playstation and buy the game. I’ve been excitedly waiting for this game to come out since about 5 years ago when I played an early demo version in a pub after (I think) Eurogamer.

I played a bit of it at Mild Rumpus earlier this year, but this is an exploring game that means you need to give time and attention to it to get the most satisfaction.

You play as the Long Mover, a multi-coloured snake like being, who flies around the worlds it finds interacting with whatever choses to interact. You can speed up or slow down and (I think) that’s it. All other abilities are part of the world that you’re visiting, usually activated by bashing your head into them.

It’s a beautiful game, filled with secrets and charming animations hidden as rewards. There is a tinge of darkness to cutting through the cheery stories and characters, hearts get broken, partiers get electrocuted and excess crumbles into decay.

The navigation of the levels is as much a memory puzzle as anything else – unlocking a new level brings you closer to looping back round to one of the two central ‘menu selection’ areas (which do not look or feel in any way like a menu, this is just what I’m calling them).

You can just wander around admiring the scenery, but there are actual tasks and challenges that take you deeper. So far I have rescued a baboon like create, destroyed a treasure room, altered a future and instigated a wedding, freeing my fellow snakes as I go.

Game diary – woah this is a doozy!

29 08 2014

I’ve not been diligently updating my game diary although I have still been playing games! Luckily I noted most down when I remembered.

16th July

I signed up for ECOjam but couldn’t afford to fly down there, so to make up for that disappointment, I caught the train up to Seattle the week after, to meet up with Harry Lee as he journeyed up the coast before heading back to Australia. I also got to meet Ian Snyder, Jon Brodsky and Morgan who were on holiday there and local Seattlites Dualhammers, Mynta, Solon and Bran.

Quantum fingers

This game is a real mind-bender. As a group, you all form a quantum computer and try to define the reality of a hand of cards. Wait, it’s more complicated than that… let me try again. Each player has 4 imaginary cards in their hand represented by their fingers. All they know at this stage is that the 4 cards are not all the same suit. As they go round, each player asks another how many of a particular suit they are holding. Until they answer, the cards in everyone’s hands are in quantum flux. They transfer those cards to the asker’s hand and the the turn moves on. The more questions get asked the more things become settled until it’s possible for someone to know for sure that they have 4 identical cards in their hand. As learners of the game, the main challenge as working together to keep the game from stopping due to a miscalculation. After that the strategies revolved around keeping other people’s hands over 4 cards.

Sushi hands

A game for roughly 6 people, using all their hands and nothing else. Players take it in turn to call out a type of sushi that needs to be made. These sushi recipes are made up of the other players’ hands collaborating to throw all the required poses to make that recipe. If one of your hands doesn’t make it into a sushi dish, then it’s out the game. Once you lose both hands, you are out. So it involves memory, team work, speed, physical contact, backstabbing and making slightly rude looking gestures. A great game!


A boardgame from my childhood, that we found in a cafe in Seattle. Players have a hand of treasure cards that they are trying to navigate a maze to find. The board is a grid of glued down tiles with channels between them all for other tiles to be slid. Starting on one of the four corners the players take it in turn to shove one column or row of tiles along and change the lay-out of the maze, then move through the corridors as far as they can.

26 July

Crazy Kitchen

A Candy Crush clone with added photo toys of sticking your friends faces on the scenic background characters. Well made and maybe has a Azkend chaining mechanic that CC possibly doesn’t have (?)


Everyone says Bastion is great and that I would love it. And it does have a pleasantly Firefly feel to it some how (despite having nothing to do with the show as far as I can tell) But I’m not so taken with it. Maybe I need to see the ending. I watched someone else play this and shouted helpful advice from the sofa such as ‘grab that melee weapon that also shoots’ and ‘smash the pots. Yes all the pots’.

It was kinda hard to look at, the backgrounds too busy.

Ilo Milo

So I have moved into a house with an xbox in it, I’ve not had a console at my disposal since moving to the USA and having to leave my Wii and inherited xbox behind in England.

Looking for a two player game, I remembered having this game on my old system.

It’s a puzzle game of getting your two characters to collect records and photos then meet up by walking around a set of interconnected catwalks. You have to help each other out by creating paths for each other and handing items over. The distinct annoyance is that only one person can move at a time. One person gets bored and looks at their phone while the other stomps around the cutesy world until they get stuck and pass the game back.

What I really wanted to play was Ibb and Obb, which this game is not, so a a fair amount of my frustration can be explained by that. Ibb and Obb is a great two player platformer where you have to work together to navigate two worlds that meet horizontally in the middle of the screen, one where gravity goes down and one where it goes up. There are nice Portal style physics puzzles involving inertia and jumping through holes.

Super time force

A multi-player game for one player. You play as a whole team with different skills but rewind the game to play simultaneously with your previous self. The nice thing is that you can speed run it a level AND go all out collecting items AND explore all in one go. The art is pixeltastic and the writing very funny.

7 wonders

I used to play this game with my co-worker in our lunch hour at Hasbro, so I have a great affection for this game.

A hand passing deck building game, you each compete to build up a city that is better than your neighbours’ cities. There are approximately 1 million ways to win, from building a massive army, building up special powers by adding levels to your city’s Wonder of the World, shooting the moon by hoarding impractical sciencey stuff. The tactics of the game are mainly in observing what other people are trying to do and stop them getting the cards they need from getting passed to them while still making sure to collect up useful cards for yourself.

Sun 27th July?

The cave

I only played the demo, but such a nice looking game. Made by DoubleFine, it’s a point and click adventure wearing an action platform/puzzler’s skin. There are several characters all of whom have a narrative arc and meticulous design. I loved the Time Traveller in particular and would have liked to spend more time figuring out what her skills and weaknesses were – the Demo cuts the game off at a good point, I was satisfied at having solved a reasonably tough puzzle but knew there was so much more I’d not seen yet.

I maed a gam3 w1th z0mb1es 1n it!!!1

Shoot all the zombies! Pick up guns and ammo and stuff! Run backwards and shoot like crazy until you are overwhelmed! An honest cheerfully flimsy timewaster game.

San Juan

This card game spin off from the board game Puerto Rico focuses just on the infrastructure buying aspect of the larger game (I presume as I’ve not played the larger game) I suspect the larger game will feel cumbersome in comparison much in the same way Monopoloy Deal makes real Monopoly feel tedious and full of extraneous distractions.

7 August


Ascension with Wow characters! And great graphics. I’ve only just got through the tutorial phases and am yet to play against real people – other than one pick up match with a stranger, who was the same newbie low level as myself but hadn’t opened and card packs yet.

This is a deck building game, free to play but pay cash money for card packs in the time honoured tradition. There are some freebie packs for unlocking achievements/completing tasks. Opening the packs is dealt with well giving it a lot of drama and anticipation. The whole thing is very glossy and well made.


A memory game essentially, although the things you are memorising are rules that stack up over time. So the more you play, the more you will have to memorise. Winning a level gives you a new rule to learn, it took me a while to realise that the rules always run in descending order of how you learned them – so long as they still apply by the time you get to them. The tiles are randomly drawn each round so there is a good mix of luck, agility and skill to winning the puzzles.!/id840811083?mt=8

Fri 8th


Classic world saving co-op game, you must play against the board to wipe out spreading epidemics before they take over the map. or go critical too many times. or you run out of options – basically there are several ways to die in this game.

I’d never played this game two player before and it does seem both more challenging and slightly too at the whim of luck when there are only two hands for cards to go into. We almost won, but ran out of pick up cards – we retraced out moves and found no way we could have completed the game in time. We also never cam anywhere near an epidemic setting of the outbreak count down so there must be something in the balancing that doesn’t scale for a two person game.

Still great fun and we were in two moves of winning if we hadn’t run out of cards, so a nailbiting finish.


The raunchy game of finger skating across an iPad, can feel uncomfortably like you’re trying to get the iPad off, as a team. But I do enjoy making my friends feel uncomfortable, so I have now played this game with several unsuspecting people.

The 70s boom-chick-wow-wow music aside, the elegantly simple puzzle mechanic of having to figure out how to keep small squares held onto other sometimes moving small squares without crashing into your partner’s hand, leads to some close proximity and contortions and physical co-operation about timing and positions that is startlingly intimate.

Sat 9th

Small world underground

A new set of clans and map for the same dynamics of the original version Small World. Players take it in turns to buy a ‘race’ from an selection that will enter onto the board from the edge and spread as far as they can across the map. Each ‘race’ has a randomly attached ability making each game different to the last. Once a race has colonised an are it can be attacked by the other players, so there is a lot of tactical play around stacking up numbers of creatures in areas that might be vulnerable or to spread yourself less thin and take on areas of the map that have harder topography to claim and a better defensive position.

One thing that I can’t remember if it the original had or not was inhabitant monsters on unclaimed lands that give the player (or the area) a treasure with a bonus ability.

Thurs 13th

80 days

A steam punk retelling of the Victorian travel story, you play as manservant Passepartout trying to navigate, keep your master’s favour and manage money, time and luggage as the story progresses.

The story telling part of the interaction is reminiscent of playing a Twine game, and it gave the sense of being a massively branching choose your own adventure – I will have to play it more to find out. Designed by my friend Meg Jayanth.

Fri 15th Aug

Power Grid

A confusing game to learn, but great fun once you do. Well, fun if you like buying things at auction and pretending to be a power company. Which apparently I do, as it turns out! A typical German style board game, all the players are playing at building their own little empire out of the shared resources available on the same board. Whoever makes the best of what fate deals them wins. Unlike say Seven Wonders however there is much more opportunity to interact with the other players and screw them over by tactically buying up resources or by blockading them out on the map.

Aug 18th

For the Kongpanion pet – which I didn’t get because the task was harder than it looked – This roguelike dungeon crawler has the interesting quirk of making the shop and the save features rare. You have to find a a set of wings hidden in a chest in order to ‘Escape’ the dungeon, and then if you do only specific items in your inventory will go with you. Although these items will persist and give you a slight advantage on your next playthrough, there are better ‘grey’ item to actually equip. You have to plan out and balance whether or not to take a route through tougher enemies that will give you access to potentially useful loot, or to keep those health points to make it through more levels. There is a distinct lack of health potions hidden in the chests too – this is a great way to reframe this kind of game. Other standard features are locked away too, being able to see what your enemy’s health, powers, wealth etc are all unlocked one by one as you find the rare items.

August in general and several months before


A creative writing exercise dressed up as a twitter robot disguised as a game. Oh and it’s sexy. Inspired by Patricia Lockwood’s comedic ‘sext:’ tweets, this twitter bot collects DMs from the players, stores them and redistributes them one by one to another player at random. Every time you send a ‘sext:’ DM to the bot you receive one from someone else within 2 minutes. You can rate the message you receive with a wink smiley😉 or replying ‘yes’ or vote them down with😦 . The only way to know if you are winning is to look at the leaderboard and see if any of you tweets are displayed and have a heart on them.

There is a disassociation between the act of writing and the scoring as the tweets stored in the database can’t be scored by the other players until they are redistributed, and that is random and depends on other players calling on the database by participating. Being prolific is a better strategy to climb the leaderboard than being creative. But then the main fun is in reading the silly messages you get and coming up with replies, so it’s not so important that the scoring is broken. This game made by my friend Brendan Adkins.

Aug 24th


From Calvin and Hobbes, a game they play is a ball game of escalating unfairness as each claims new rules to exist that tip the score in their favour. I followed Brendan, Alyssa and Mike to the park to play this with their friends Harry, Maddie, Patrick and Joli. We came up with two games, both with a no running rule. The first involved tagging other players to get one of the two balls in play off them and getting it to the goal tree. You could then  only score if another player was touching the tree and you the the ball to them – you then both got a point. You couldn’t score with the same player twice. If anyone shouted ‘jump’ at any point, anyone failing to jump lost a point.

The second game was a team game (although the teams kept switching between rounds due to not having enough players for even teams). Starting from one end a pitch of sorts, the team had to get a ball balanced on a tennis racket to the opponent’s end first to score. The team’s had defined roles, the [carrier] who carried the racket but couldn’t touch the ball if it fell off. The Retriever who could fetch the ball but couldn’t carry it forward. The Bludgeoner who could pound the opponent’s racket to dislodge the ball and the goalie whose role was kinda written out so was given the ability to hug anyone they wanted. This turned out to be a crucial defensive tactic. None of the players were allowed to speak during the rounds and had to communicate with strange noises. This game was by far the favourite. The constant switching of players made allegiance hard to cement and gave a pleasant lack of animosity, although tricky to keep score. Alyssa the scorekeeper finally decided that whoever had never been on a winning team at all, lost, which is kinda mean, but totally worked :) 

We then played my half broken game of Weeping Angels ‘Blink’ and tried to fix it by adding rules that stop the angels advancing unless they’re holding a ball or were being pointed at by another player. In this game, one person stands in the middle of a circle and has to try and survive as long as they can. The people advancing on the central player can only move if not being looked at, but as they surround the player there is always someone they’ve got their back turned to. Being in the middle is creepy, like being surrounded by Ninja cats

Space Team

And then to Melissa’s to play games and eat ice lollies. I missed out on playing Morels but did get to play –

Space Team! We were on a …. Space team! The excellent game of shouting nonsense at your friends. You’re all on a spaceship that is doomed to explode no matter what (or maybe there is an ending I’ve never gotten to?) You need to keep the thing together for as long as you can by following the instructions. Trouble is, the instruction on your screen might no be for your control panel. And you panel is leaking ooze, unscrewed and flailing about, under the paw of the ship’s cat and in an alien language. WORMHOLE EVERYBODY FLIP!!

Aug 27th


An adorable little world made entirely of Emoji, you play as a smiley face and explore the map, finding secrets and talking to locals. There’s a zoo, filled with emoji animals. You can go drink emoji beer and lose control of your character or get a hair cut to look like a baby. I’m not sure there is a win state besides finding all the things that are suggested to find (I got all but one the disembodied eyes).

Game diary

9 07 2014

I played Super Time Force by Cappy. It’s a great game, a single player co-op! You play against the clock, but if you choose to ‘time out’ (or you die) you get to rewind the game as far back as you want and add a new character in to the fray. You only get so many goes at rewinding, in the first level 30 lives. So the more characters you add, the quicker it gets to kill the monsters. The writing is also very funny, although unskippable cut scene after cut scent at the start was a bit frustrating.

I ran a tournament to promote the reboot of the Spaceteam kickstarter at local Portland barcade Ground Kontrol.
There have been updates to Spaceteam since I played it last, one being the ships cat, an annoying handicap (in a hilarious way) that puts it’s paws over the bust ructions and tries to grab the controls. Typical cat.

I played some nice iPad games that I can’t talk about just yet.

Also 7 wonders card/board game which I haven’t played in ages. I got really lucky and won!

Played Ilo and milo which is a co-op game on xbox, I used to have it bsck when had an xbox. It’s a. It annoying because the two players have take turns to play, so one of is sat around waiting half the time.

I also played two game for the kongregate kongpanion. I forget their names.

game diary

23 05 2014


I played this game for the kongpanion this is really not my kind of game, which is useful because I was trying to think of what genres I don’t like in order to participate in Fuck This Jam. I guess it’s actually an inverted tower defence, which is my favourite genre so maybe I’ve still not found my nemesis.

A few days ago I played the lovely How to be a Blackbird by Holly Gramazio, it’s a twine game so part story part exploration. It’s one of the few games I’ve ever played where the protagonist is an animal and therefore has a whole alien set of wants and needs.

I went to Eyebeam in New York to participate in a playtest session there, so I played two as yet unnamed games, one physical about creating playspaces with your hands for fingers to walk across and one card game of the CAH persuasion.

I’ve downloaded Fingle but haven’t played it properly yet as it is multiplayer. I didn’t realise it’s theming was so raunchy!