mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-15 04:24:01 +01:00
23 lines
501 B
PowerShell
Executable File
23 lines
501 B
PowerShell
Executable File
<#
|
|
.SYNOPSIS
|
|
Checks the earth (fun)
|
|
.DESCRIPTION
|
|
This script checks the earth and replies by text-to-speech (TTS).
|
|
.EXAMPLE
|
|
PS> ./check-earth
|
|
.NOTES
|
|
Author: Markus Fleschutz · License: CC0
|
|
.LINK
|
|
https://github.com/fleschutz/PowerShell
|
|
#>
|
|
|
|
try {
|
|
$Reply = "Earth still spins with 1040mph."
|
|
"✔️ $Reply"
|
|
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
|
exit 0 # success
|
|
} catch {
|
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
|
exit 1
|
|
}
|