[Twitch] Help with subscribed notification - 22/05/16 04:54 AM
Hi,
I wonder if there is any way to make count subscribed and re-subscribing, will automatically reset to 0 at a specific time? I appreciate any advice or help.
That is: Suppose I have [New Subs Today: 10] and [Resubs: 20] [Total: 30] And program it for example at "00:00hrs" and the count is reset automatically to 0, and starting again.
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
}
I wonder if there is any way to make count subscribed and re-subscribing, will automatically reset to 0 at a specific time? I appreciate any advice or help.
That is: Suppose I have [New Subs Today: 10] and [Resubs: 20] [Total: 30] And program it for example at "00:00hrs" and the count is reset automatically to 0, and starting again.
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
}