PowerShell/Scripts/good-bye.ps1

19 lines
377 B
PowerShell
Raw Normal View History

2021-11-26 14:46:14 +01:00
<#
.SYNOPSIS
Say an answer to 'good bye'
.DESCRIPTION
This script answers to "good bye" by text-to-speech (TTS).
.EXAMPLE
PS> ./good-bye
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
$Answer = "Good bye.", "See you." | Get-Random
write-output "$Answer"
& "$PSScriptRoot/speak-english.ps1" "$Answer"
exit 0 # success