PowerShell/Scripts/how-are-you.ps1

19 lines
530 B
PowerShell
Raw Normal View History

2021-11-18 11:34:20 +01:00
<#
.SYNOPSIS
2021-12-01 09:57:36 +01:00
Answers to 'how are you?'
2021-11-18 11:34:20 +01:00
.DESCRIPTION
2021-12-01 09:57:36 +01:00
This script says a reply to "how are you?" by text-to-speech (TTS).
2021-11-18 11:34:20 +01:00
.EXAMPLE
PS> ./how-are-you
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
2021-12-01 09:57:36 +01:00
$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
2021-11-27 14:16:50 +01:00
2021-12-01 09:57:36 +01:00
"$Reply"
& "$PSScriptRoot/speak-english.ps1" "$Reply"
2021-11-27 14:16:50 +01:00
exit 0 # success