This is a meta-bundle for NodeCG. It doesn't provide any display functionality on its own, but it emits events for new followers, and provides a Replicant variable for the latest follower for other bundles to use.
- NodeJS 4.x
- NodeCG 0.6.x
- lfg-twitchapi
- Install to
nodecg/bundles/bubu-followers
. - Configure lfg-twitchapi
This bundle emits the follower
event for a new follower, and registers the
latestFollower
replicant for the latest follower. These have a payload
consisting of the Twitch API Follower object.
{
"username": "twitchname",
"pollInterval": 30
}
This can also be generated by the nodecg-cli's defaultconfig
command.
nodecg.on('follower', function(follower) {
console.log(follower.user.display_name);
});
var latestFollower = nodecg.Replicant('latestFollower')
latestFollwer.on('change', function(oldVal, newVal) {
console.log(newVal.user.display_name);
})
This project is licensed under the MIT License