mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-08 17:14:28 +01:00
Add how-are-you.ps1
This commit is contained in:
parent
c19fcecc79
commit
72f75c2870
20
Scripts/how-are-you.ps1
Executable file
20
Scripts/how-are-you.ps1
Executable file
@ -0,0 +1,20 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Say an answer to 'how are you?'
|
||||
.DESCRIPTION
|
||||
This script answers "how are you?" by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./how-are-you
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
& "$PSScriptRoot/speak-english.ps1" "I'm fine, thanks."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user