PowerShell/Scripts/good-bye.ps1
2021-12-01 09:57:36 +01:00

19 lines
372 B
PowerShell

<#
.SYNOPSIS
Answers to 'good bye'
.DESCRIPTION
This script says a reply to "good bye" by text-to-speech (TTS).
.EXAMPLE
PS> ./good-bye
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
$Reply = "Good bye.", "See you.", "Bye bye." | Get-Random
"$Reply"
& "$PSScriptRoot/speak-english.ps1" "$Reply"
exit 0 # success