Check for BRB status

pull/13/head
Robert van Bregt 4 years ago
parent b3756e65f4
commit b520e6f4ef

@ -31,6 +31,7 @@ $HAUrl = "<HAUrl>" # Example: https://yourha.duckdns.org
$lgAvailable = "Available" $lgAvailable = "Available"
$lgBusy = "Busy" $lgBusy = "Busy"
$lgAway = "Away" $lgAway = "Away"
$lgBeRightBack = "Be right back"
$lgDoNotDisturb = "Do not disturb" $lgDoNotDisturb = "Do not disturb"
$lgInAMeeting = "In a meeting" $lgInAMeeting = "In a meeting"
$lgOffline = "Offline" $lgOffline = "Offline"
@ -103,6 +104,11 @@ If ($null -ne $TeamsProcess) {
$Status = $lgAway $Status = $lgAway
Write-Host $Status Write-Host $Status
} }
ElseIf ($TeamsStatus -like "*Setting the taskbar overlay icon - $lgBeRightBack*" -or `
$TeamsStatus -like "*StatusIndicatorStateService: Added BeRightBack*") {
$Status = $lgBeRightBack
Write-Host $Status
}
ElseIf ($TeamsStatus -like "*Setting the taskbar overlay icon - Do not disturb *" -or ` ElseIf ($TeamsStatus -like "*Setting the taskbar overlay icon - Do not disturb *" -or `
$TeamsStatus -like "*StatusIndicatorStateService: Added DoNotDisturb*" -or ` $TeamsStatus -like "*StatusIndicatorStateService: Added DoNotDisturb*" -or `
$TeamsStatus -like "*Setting the taskbar overlay icon - Focusing*" -or ` $TeamsStatus -like "*Setting the taskbar overlay icon - Focusing*" -or `

Loading…
Cancel
Save