PowerShell/Scripts/how-are-you.ps1

19 lines
544 B
PowerShell
Raw Normal View History

2021-11-18 11:34:20 +01:00
<#
.SYNOPSIS
Say an answer to 'how are you?'
.DESCRIPTION
This script answers "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
#>
2021-11-29 14:48:51 +01:00
$Answer = "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
2021-11-27 14:16:50 +01:00
& "$PSScriptRoot/speak-english.ps1" "$Answer"
write-output "$Answer"
exit 0 # success