twitch-notifications
Notifies you about new followers, and dumps thanks to the file.
Javascript API
Install
npm install --save github:elmigranto/twitch-followers
In Node.js
const Notifier = ;const notifier = 'channel';notifier;notifierstart;
In browser
It probably may be used from browser via browserify
or similar tool. Let me know!
Constructor Options
Notifier
accepts options object as its second argument. Supported props:
sinceId
(Integer
, defaults to-1
) — will notify you about follows after this User ID.timeoutMillis
(Interger
, defaults to10000
) — how often to query Twitch for new follows.
Command Line Tool
Install
git clone https://github.com/elmigranto/twitch-followers.gitcd twitch-followersnpm install
Run
node notifier <your channel>
(i.e. node notifier elmigranto
) will parse all your followers and thank them on initial run. After that, it will only notify your about new ones.
Files it uses:
// Thank you message for plugging into streaming software (OBS and others):`~/Desktop/.followers.txt`// For saving IDs of users it notified about:`~/Desktop/.last-follower.json`