2.3.2 • Published 9 years ago
barry-donations v2.3.2
barry-donations
An evented API wrapper for Barry's Donation Tracker, a service that makes tracking donations easier for Twitch broadcasters.
Installation
npm install barry-donations
Example Usage
var BarryDonations = require('barry-donations');
// New donations will be received via a REST endpoint
// barry-donations takes care of making and listening to the endpoint, but you must supply the hostname
var bd = new BarryDonations({
username: 'user',
password: 'pass',
hostname: 'yourserver.com', // don't add "http://" prefix. https currently unsupported
port: 1234, // optional, will use a random port if not supplied
reconnect: true // optional, attempt to automatically reconnect when disconnected. defaults to true.
});
bd.on('connected', function () {
console.log('connected');
});
bd.on('connectfail', function (e) {
console.error(e);
});
bd.on('error', function (e) {
console.error(e);
});
bd.on('disconnected', function (e) {
console.error(e);
});
bd.on('reconnecting', function (timerDuration) {
console.log('reconnecting in %d seconds', timerDuration);
});
bd.on('initialized', function (data) {
console.log("[init]" + data);
});
bd.on('newdonations', function (data) {
console.log("[newdonations] " + data);
});
Contributing
- Fork it ( http://github.com/langeh/barry-donations/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
barry-donations is provided under the MIT license, which is available to read in the LICENSE file.
Credits
Barry Carlyon, developer of Barry's Donation Tracker
2.3.2
9 years ago
2.3.1
10 years ago
2.3.0
10 years ago
2.2.4
10 years ago
2.2.3
10 years ago
2.2.2
10 years ago
2.2.1
10 years ago
2.2.0
10 years ago
2.1.10
10 years ago
2.1.9
10 years ago
2.1.8
10 years ago
2.1.7
10 years ago
2.1.6
11 years ago
2.1.5
11 years ago
2.1.4
11 years ago
2.1.3
11 years ago
2.1.2
11 years ago
2.1.1
11 years ago
2.1.0
11 years ago
2.0.1
11 years ago
2.0.0
11 years ago
1.1.3
11 years ago
1.1.2
11 years ago
1.1.1
11 years ago
1.1.0
11 years ago
1.0.1
11 years ago
1.0.0
11 years ago
0.1.0
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
0.0.0
11 years ago