From bd04b3211d9cba0e01fbc6b1804edb2a371227db Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Mon, 14 Feb 2022 10:13:35 +0000 Subject: [PATCH] Update 'node/alerts.js' --- node/alerts.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/node/alerts.js b/node/alerts.js index 3155e72..931df33 100644 --- a/node/alerts.js +++ b/node/alerts.js @@ -1,3 +1,15 @@ +// TTV Re-Active +// ================================== +// TO-DO: Add Follower API +// https://api.twitch.tv/kraken/channels/MY_ID/follows?api_version=5&client_id=MY_CLIENT_ID&limit=1 + +// client.on("action", (channel, userstate, message, self) => { +// // Don't listen to my own messages.. +// if (self) return; +// console.log('LOG: Action '); +// }); +// import { ttv_alerts } from "./alerts.js"; +// ttv_alerts(); client.on("anongiftpaidupgrade", (channel, username, userstate) => { console.log('HYPE | @'.green+ username.yellow, 'just upgraded their Anon-Gift-Sub => PAID! Userstate?', userstate.yellow); client.say(channel, `Legit, @`+ username, `just upgraded their Anon-Gift-Sub to a paid sub! Thanks for the support, I feel like a real boy!`);