This one is hard to explain for me.
I want to run something in multiple channels.
I have a timer list that'd activate on load or on connect (if a disconnect happens).
on *:LOAD: {
timer_streamStatus 0 120 streamStatus
}
on *:CONNECT: {
timer_streamStatus 0 120 streamStatus
}
I have an alias I'd want to use for all channels I'm joined up with, but would like to manage the variables properly.
alias streamStatus {
var %j = streamStat
JSONOpen -u %j https://api.twitch.tv/kraken/streams/ $+ $mid(#,2) $+ ?= $+ $rand(1,1000000)
var %status = $json(%j,status)
if (%status == $null) {
set %status_ [ $+ [ $mid(#,2) ] ] Offline
}
else {
set %status_ [ $+ [ $mid(#,2) ] ] Online
}
JSONClose %j
}
Is there a way to make it where it would check all channels I'm joined on?
Just needing a nudge in the right direction.