twitch-live-alerter
v1.2.1
Published
```js const twitchLiveAlerter = require("twitch-live-alerter") const options = { users: ["trywin", "trainwreckstv"], clientID: "twitch api client id", auth: "twitch api bearer token" } const twitchAlerter = new twitchLiveAlerter(options) twitchAlerter
Downloads
3
Readme
Twitch live alerter
Example usage:
const twitchLiveAlerter = require("twitch-live-alerter")
const options = { users: ["trywin", "trainwreckstv"], clientID: "twitch api client id", auth: "twitch api bearer token" }
const twitchAlerter = new twitchLiveAlerter(options)
twitchAlerter.on("live", user=>{
console.log(`${user.user_name} is now online on https://www.twitch.tv/${user.user_name.toLowerCase()}`)
})