You'll need to:
- determine the stream's uptime, and then convert that into minutes
- capture Kappas and save it in a variable
if ($regex($1-,/\bKappa\b/g)) { set %kappa. [ $+ [ # ] ] $regex($1-,/\bKappa\b/g) }
- periodically check if stream has gone offline in which case you reset the counter