Coder Social home page Coder Social logo

helltoupee's Introduction

A proud first release from artist Sofa King Awesome, 12.26.2015. https://twitter.com/realHellToupee

You can build your own twitter bot by taking this code and modifying it. Current version strips @'s to avoid accidental retweets. See below for implementation details.

@realHellToupee
2015
Sofa King Awesome

Node.js.
On loan by the artist, to the public.

Inspired by the lovely Trevor Noah and Hasan Minhaj skit, "Donald Trump: The White ISIS," this twitter bot scans for new tweets mentioning Donald Trump every two minutes. It replaces all instances of Trump with WhISIS ("why-sis") and Make America Great Again with Notice me, Senapi!. The resulting retweets are both eerie and comical. An overidentification with racist fascism reminds us of the stakes and twisted sincerity of participants on the one hand, while an overidientification with self-referential meme culture reminds us that the Internet is serious business after all.

Requires node and npm. You also need a Twitter App access token, consumer key, and associated secrets: https://dev.twitter.com/apps/new

You'll need to add all that info to helltoupee.js before running the program. Don't worry - code is commented.

Instead of putting the secrets into helltoupee.js directly (don't upload your secretes to github!) I used fs (part of the core Node.js API) to read these in from files in the same local directory as helltoupee.js for local development, and referenced environment ("config") variables for deployment on heroku.

Code inspired by https://github.com/dariusk/metaphor-a-minute. Thanks Darius!

Check packages.json for dependencies.

npm install

node helltoupee.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.