PowerShell/Scripts/thank-you.ps1
2021-11-27 14:16:50 +01:00

19 lines
390 B
PowerShell
Executable File

<#
.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
#>
$Answer = "It's a pleasure.", "Never mind." | Get-Random
& "$PSScriptRoot/speak-english.ps1" "$Answer"
write-output "$Answer"
exit 0 # success