mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-27 07:09:03 +01:00
Add thank-you.ps1
This commit is contained in:
parent
8687ea644e
commit
848c7b13a9
20
Scripts/thank-you.ps1
Executable file
20
Scripts/thank-you.ps1
Executable 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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user