I have this code done for you, but does not work in multiple channels separately, builds all subscribers in general.
on *:text:*:#: {
if ($nick == twitchnotify) {
.timer_sub_reset 23:59 1 0 /set %sub 0
.timer_sub_reset 23:59 1 0 /set %resub 0
if (($3 == to) || ($4 == to)) { return }
if ($5 == months) {
inc %resub
msg # /me - $1 thank you for the $4 months of support. - [New Subs Today: %sub $+ ] and [Resubs: %resub $+ ] [Total: $sub_total(%sub,%resub) $+ ]
}
if ($2 == just) {
inc %sub
msg # /me - $1 thank you for subscribing, please enjoy your emotes to use all across Twitch. - [New Subs Today: %sub $+ ] and [Resubs: %resub $+ ] [Total: $sub_total(%sub,%resub) $+ ]
}
}
}
alias sub_total {
var %sub_total = $calc(%sub + %resub)
return %sub_total
}