mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-11 16:39:10 +01:00
Add how-do-you-do.ps1
This commit is contained in:
parent
9d16073331
commit
d23894fa80
17
Scripts/how-do-you-do.ps1
Normal file
17
Scripts/how-do-you-do.ps1
Normal file
@ -0,0 +1,17 @@
|
||||
<#
|
||||
.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
|
||||
|
||||
& "$PSScriptRoot/give-reply.ps1" "$Reply"
|
||||
exit 0 # success
|
Loading…
Reference in New Issue
Block a user