Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // To be used with Scriptable for iOS
- // Learn more at https://scriptable.app
- // Checks if Discord is down by examining
- // their status page. This script works
- // well when when triggered from a Siri
- // Shortcut. You can configure a Siri
- // Shortcut from the script settings.
- let url = "https://status.discordapp.com"
- let r = new Request(url)
- let body = await r.loadString()
- Safari.openInApp(url)
- // Use the global variable "config" to check
- // if the app is run from Siri before we
- // speak a text.
- if (config.runsWithSiri) {
- let needle = "All Systems Operational"
- if (body.includes(needle)) {
- Speech.speak("No")
- } else {
- Speech.speak("Yes")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment