Simple Twitter Bot
This is a framework for creating simple Twitter bots in node. It uses the straightforward Twit library to access Twitter's streaming API.
Usage
git clone https://github.com/rfreebern/simple-twitter-bot.git && cd simple-twitter-bot && npm install
- Create an application on http://dev.twitter.com
- Generate the necessary tokens.
- Copy
config.js-dist
toconfig.js
- Put your tokens in
config.js
- Put some keywords for your bot to follow in the
keywords
array inconfig.js
- Add whatever logic you want to the
valid
andresponse
functions inconfig.js
node bot.js > output.log &
What Uses It
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.