Skip to content

tmtrademark/bubu-followers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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.

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

Languages

  • JavaScript 100.0%