mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-15 04:24:01 +01:00
19 lines
530 B
PowerShell
Executable File
19 lines
530 B
PowerShell
Executable File
<#
|
|
.SYNOPSIS
|
|
Answers to 'how are you?'
|
|
.DESCRIPTION
|
|
This script says a reply to "how are you?" by text-to-speech (TTS).
|
|
.EXAMPLE
|
|
PS> ./how-are-you
|
|
.NOTES
|
|
Author: Markus Fleschutz · License: CC0
|
|
.LINK
|
|
https://github.com/fleschutz/PowerShell
|
|
#>
|
|
|
|
$Reply = "I'm fine, thanks. How are you?", "I'm fine, maybe a little tired. I need some more coffee.", "Great, thank you. How are you?", "Good, thanks, and you?", "Fine, thanks. How are you?" | Get-Random
|
|
|
|
"$Reply"
|
|
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
|
exit 0 # success
|