Snippets Collections
#!/bin/sh

curl -s https://status.slack.com/api/v2.0.0/current | \
  jq -r '"Status: " + (if (.status == "active") then "Active Incident" else "Ok" end),"Last Updated: " + .date_updated,if (.active_incidents[] | length) > 0 then "Active Incidents\n" + .active_incidents[] .title else "" end'
star

Mon Mar 28 2022 15:24:17 GMT+0000 (Coordinated Universal Time)

#bash #wtfutil #slack

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension