1.2.1 • Published 4 years ago
twitch-live-alerter v1.2.1
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()}`)
})