Add see-you.ps1

This commit is contained in:
Markus Fleschutz 2021-12-01 13:58:43 +01:00
parent 0f3f7f74b2
commit 4e41f16a8e
2 changed files with 19 additions and 0 deletions

View File

@ -125,3 +125,4 @@ Computer, check `name`
* *Computer, I'll be back.*
* *Computer, good bye.*
* *Computer, bye-bye.*
* *Computer, see you.*

18
Scripts/see-you.ps1 Normal file
View File

@ -0,0 +1,18 @@
<#
.SYNOPSIS
Answers to 'see you'
.DESCRIPTION
This script says a reply to "see you" by text-to-speech (TTS).
.EXAMPLE
PS> ./see-you
.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