GithubHelp home page GithubHelp logo

isabella232 / lexington-psa-twitterbot-couchy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeforamerica/lexington-psa-twitterbot-couchy

0.0 0.0 0.0 4.11 MB

Dissuade excited basketball fans from burning couches http://www.savecouchy.com/

JavaScript 85.17% CSS 14.83%

lexington-psa-twitterbot-couchy's Introduction

Public Service Announcement Twitterbot

A twitterbot currently configured to dissuade excited University of Kentucky basketball fans from burning couches in their front yards, in the back yards, or in the street.

It interacts with users like so:

  • The first time someone (a bud) tweets at CouchyLives, the bot (Couchy) replys
  • The reply contains a permalink immortalizing the bud's tweet, and showing the bud as a dancing robot.
  • It's nicely described here
  • This pattern can be used in any number of ways. Please feel free to fork and use as a bot for your own PSA campaign!

Install

Create a twitter application
  • Set up a twitter account that will be the bot!
  • Sign-in to the develper console with the bot account credentials.
  • Through the account menu, create a new application
  • Add a phone number to the account so that the application can have "Read and Write" permissions
  • Set the application permissions to "Read and Write"
  • Generate access token. Make sure that its permissions are "Read and Write"
To install to your development environment
git clone <repo name>
cd <repo name>
npm install
cp .env-sample .env
  • Edit .env, replace the values with those from your twitter application settings on dev.twitter.com
  • Test whether your keys are correct. Search for something popular on twitter and watch the node output as it streams tweets that result from the search. In the .env file, set SEARCH_TERM='Something popular'
# make sure redis is running
# run tests
mocha

# start application
foreman start

lexington-psa-twitterbot-couchy's People

Contributors

eeeschwartz avatar

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.