I know this has probably been posted before but I cant find any further information as the pages that answer don't show up for me.
I am trying to keep track of my specific chatters and how many times they have checked in my Twitch chat. I am doing this for a prize at the end of the month so basically im thinking like a simple !checkin command user specific that would track how many times that user has checked in for the month's streams. I understand the private and public token is needed, just not sure how many commands i would need to use or do for this to be user specific counting. Any help is appreciated!
2 replies
Purple Tiger
You can use the Nightbot Counter API to keep track of check-ins and Google Apps Script (free) to ensure users can only check-in once per day.
1. Go to Google Apps Script. 2. Create a new project. 3. Paste this code:
const NAMESPACE = "checkinbot";
function doGet(e) {
const user = e.parameter.user;
if (!user) return ContentService.createTextOutput("❌ User not defined");