mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-27 10:23:17 +01:00
19 lines
389 B
PowerShell
19 lines
389 B
PowerShell
<#
|
|
.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.", "Bye bye." | Get-Random
|
|
|
|
& "$PSScriptRoot/speak-english.ps1" "$Answer"
|
|
write-output "$Answer"
|
|
exit 0 # success
|