I current have this to check the title of the stream:
alias streamstatus {
JSONOpen -ud streamstatus https://api.twitch.tv/kraken/channels/asdf
IF ($json(streamstatus, status)) return $v1
ELSE return Error
JSONClose streamstatus
}
ON *:TEXT:!title:#: {
if ((%floodenzazz) || ($($+(%,floodenzazz.,$nick),2))) { return }
set -u7 %floodenzazz On
set -u25 %floodenzazz. $+ $nick On
MSG $chan .w $nick Title: " $streamstatus "
}
I am wondering how I can make it so that it not only whispers the user the title of the stream, but also the time since the title was last changed. I am thinking something along the lines of checking the title every 5 mins using the twitch api, then simply recording the time when the text changes. Not sure how to do this though, any ideas?