A simple template to start building Twitter bots.
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.
- Fork or clone the repo.
- Rename the configuration file
config.example.js
toconfig.js
. - Edit the development configuration with your Twitter credentails.
- Run
redis-server
. - Run
npm install
to install the packages. - Run
grunt
to check your JavaScript syntax and run the suite of tests. - Run
node watcher.js
to capture the tweets andnode app.js
to see the list of captured feelings.
- 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
- twit: Twitter API Client for node (REST & Streaming API).
- redis: redis client library
- request: simplified HTTP request client.
- underscore: JavaScript's functional programming helper library.
- cli-color: colors and formatting for the console.
Have a look to this list of cool node.js packages I've compiled. They are great to use in creative coding projects.
Copyright (c) 2015 Javier Arce Licensed under the MIT license.