Tweets like Trump

Tweets like Trump

For the winter show I decided to make a twitter bot that tweets like Donald Trump. Why? Well (a) it is super fun to troll Trump and (b) it is a strange experience to be at the receiving end of vicious tweets, the kind that Trump sends out, and it gives you a pause to think about what it does to the public discourse.

So the idea is that if someone interacts with the bot @donalreal, the bot replies with a Trump style tweet mentioning you in that tweet. The bot is live even now although I have stopped updating the tweets.

Pictures from the show

Here is the code

Here's how it works

It maintains a database of all such people who have fallen in his radar because of one of the above three events.

The information about the user that it stores right now is name, screen name, description, image url, followers count, favorite count and status count. Each member is also given a good nickname and a bad nickname.

The way it tweets back is that it chooses a template tweet from a huge list and replaces the variables in the template with information received from the user.