PowerShell/Scripts/thank-you.ps1

19 lines
390 B
PowerShell
Raw Normal View History

2021-10-13 13:32:10 +02:00
<#
.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
#>
2021-11-26 14:46:14 +01:00
$Answer = "It's a pleasure.", "Never mind." | Get-Random
& "$PSScriptRoot/speak-english.ps1" "$Answer"
2021-11-27 14:16:50 +01:00
write-output "$Answer"
2021-11-26 14:46:14 +01:00
exit 0 # success