mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Change to use speak-english.ps1
This commit is contained in:
@ -16,9 +16,9 @@ try {
|
||||
$NewYear = [Datetime]("12/31/" + $Now.Year)
|
||||
$Days = ($NewYear – $Now).Days + 1
|
||||
if ($Days -gt 1) {
|
||||
& "$PSScriptRoot/give-reply.ps1" "New Year is in $Days days."
|
||||
& "$PSScriptRoot/speak-english.ps1" "New Year is in $Days days."
|
||||
} elseif ($Days -eq 1) {
|
||||
& "$PSScriptRoot/give-reply.ps1" "New Year is tomorrow."
|
||||
& "$PSScriptRoot/speak-english.ps1" "New Year is tomorrow."
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
|
Reference in New Issue
Block a user