0.0.9 • Published 11 years ago

loudbot v0.0.9

Weekly downloads
4
License
-
Repository
github
Last release
11 years ago

Get a random tweet from @LOUDBOT

Index

Example

export LOUD_CONFIG=config.js
loud = require('loudbot');
loud();

// Output: GUYS I TRIED TO USE A MULTITHREADED REGEXP TO PARSE HTML BUT IT DIDN'T WORK: HELP???

LOUD_CONFIG is an environment variable with the relative path to the config file. The file should look like:

'use strict';

module.exports = {
  consumer_key:         '',
  consumer_secret:      '',
  access_token:         '',
  access_token_secret:  ''
};

You get those keys after creating application on Twitter.
If you don't have a twitter application, create one here.

Methods

var loud = require('loudbot');

loud(cb)

cb(err, tweet) is an optional callback. It fires with a random tweet as a string.

Install

npm install loudbot

Test

export LOUD_CONFIG=config.js
npm test
0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago