/bot

Twitter Bot Template

Primary LanguageJavaScriptMIT LicenseMIT

Twiter bot template

A simple template to start building Twitter bots.

How to run the default example

The default example captures the tweets that contain the string "I'm feeling [bad|good|etc.]" and stores the feeling in Redis. Another program prints each feeling every 30 seconds.

You'll need to have node, npm and redis installed.

  1. Fork or clone the repo.
  2. Rename the configuration file config.example.js to config.js.
  3. Edit the development configuration with your Twitter credentails.
  4. Run redis-server.
  5. Run npm install to install the packages.
  6. Run grunt to check your JavaScript syntax and run the suite of tests.
  7. Run node watcher.js to capture the tweets and node app.js to see the list of captured feelings.

Packages included

Language

  • wordfilter: a small module meant for use in text generators that lets you filter strings for bad words.
  • pos: fasttag part of speech tagger javascript implementation.
  • inflection: a port of inflection-js to node.js module

Base

  • twit: Twitter API Client for node (REST & Streaming API).
  • redis: redis client library
  • request: simplified HTTP request client.

Helpers

  • underscore: JavaScript's functional programming helper library.
  • cli-color: colors and formatting for the console.

Other cool packages

Have a look to this list of cool node.js packages I've compiled. They are great to use in creative coding projects.

License

Copyright (c) 2015 Javier Arce Licensed under the MIT license.