I tried to put something together but doesn't work.

Code
ON *:TEXT:!uptime:#CHANNELNAME: {
  if ((%flood_uptime) || ($($+(%,flood_uptime_,$nick),2))) { return }
  set -eu0 %flood_uptime On
  set -eu0 %flood_uptime_ $+ $nick On
  
  if ($regex($msgtags(display-name).key, /^[a-z\d_]+$/ig)) { set %output msg #CHANNELNAME /me @ $+ $msgtags(display-name).key }
  else { set %output msg #CHANNELNAME /me @ $+ $nick }
 
  $urlget(https://decapi.me/twitch/uptime?channel=monstercat,gb,&url,if ($bvar(&url,1).text) %output channel has been live for $v1)
  noop $urlget(https://decapi.me/twitch/uptime?channel=monstercat,gb,&url,handle_output)
  
  alias handle_output {
  if ($bvar(&url,1).text) { %ouput channel is online for $v1 }
  else { %output channel if offline }
  
}