Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ON *:TEXT:!uptime:#: {
- if (%flood_uptime) || ($($+(%,flood_uptime_,$nick),2)) { return }
- set -eu6 %flood_uptime On
- set -eu3 %flood_uptime_ $+ $nick On
- if ($regex($msgtags(display-name).key, /^[a-z\d_]+$/ig)) { var %output = msg $chan /me @ $+ $msgtags(display-name).key }
- else { var %output = msg $chan /me @ $+ $nick }
- var %v = UPTIME_ $+ $ticks $+ $ctime
- JSONOpen -Ud %v https://decapi.me/twitch/uptime?channel=monstercat
- if ($jsonerror) { %output Error! Connection Problem! - Error Details: $jsonerror | return }
- var %d = $json(%v).httpbody
- if (!%d) { %output Error! Connection Reading Problem! - Error Details: $json(%v).error }
- else { %output Uptime: %d }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement