mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Add use of give-reply.ps1
This commit is contained in:
@ -15,9 +15,7 @@ try {
|
||||
$Now = [DateTime]::Now
|
||||
$Diff = [Datetime]("12/31/" + $Now.Year) – $Now
|
||||
|
||||
$Reply = "New Year is in $($Diff.Days) days."
|
||||
"✔️ $Reply"
|
||||
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
||||
& "$PSScriptRoot/give-reply.ps1" "New Year is in $($Diff.Days) days."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
|
Reference in New Issue
Block a user