Add thank-you.ps1

This commit is contained in:
Markus Fleschutz 2021-10-13 13:32:10 +02:00
parent 8687ea644e
commit 848c7b13a9

20
Scripts/thank-you.ps1 Executable file
View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Say an answer to 'thank you'
.DESCRIPTION
This script answers to "thank you" by text-to-speech (TTS).
.EXAMPLE
PS> ./thank-you
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
try {
& "$PSScriptRoot/speak-english.ps1" "It's a pleasure."
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
exit 1
}