 		}
 	}
 	
-	
 	DispatchQueue.global().async(execute: inputFileMonitor)
+	
+	
+	func pingRedunda() {
+		guard redundaKey != nil else { return }
+		repeat {
+			do {
+				let response = try sendStatusPing(client: client)
+				
+				if response.shouldStandby {
+					rooms.first!.postMessage("[ \(botName) ](\(githubLink)) switching to standby mode on \(location).")
+					backgroundTasks.append(.shutDown(reboot: true, update: false))
+				}
+			} catch {
+				handleError(error, "while sending a status ping to Redunda")
+			}
+		} while true
+	}
+	
 	
 	
 	repeat {


let saveDirURL = URL(fileURLWithPath: NSHomeDirectory()).appendingPathComponent(".firealarm", isDirectory: true)



fileprivate var listener: ChatListener!

var filter: Filter!

func main() throws {
	print("FireAlarm starting...")

		} while true
	}
	
	DispatchQueue.global().async(execute: inputMonitor)
	
	
