PowerShell/Scripts/bye-bye.ps1
Markus Fleschutz 6a6f65ebe9 Add bye-bye.ps1
2021-11-26 15:13:16 +01:00

19 lines
386 B
PowerShell

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