Skip to content

eaceaser/bubu-followers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bubu-followers

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.

Dependencies

Installation

  1. Install to nodecg/bundles/bubu-followers.
  2. Configure lfg-twitchapi

Usage

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.

Sample Config

{
  "username": "twitchname",
  "pollInterval": 30
}

This can also be generated by the nodecg-cli's defaultconfig command.

Example

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);
})

License

This project is licensed under the MIT License

About

NodeCG Followers Tracker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published