Add bye-bye.ps1

This commit is contained in:
Markus Fleschutz 2021-11-26 15:13:16 +01:00
parent 149f1aacbe
commit 6a6f65ebe9
2 changed files with 19 additions and 1 deletions

18
Scripts/bye-bye.ps1 Normal file
View File

@ -0,0 +1,18 @@
<#
.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

View File

@ -11,7 +11,7 @@
https://github.com/fleschutz/PowerShell
#>
$Answer = "Good bye.", "See you." | Get-Random
$Answer = "Good bye.", "See you.", "Bye bye." | Get-Random
write-output "$Answer"
& "$PSScriptRoot/speak-english.ps1" "$Answer"