mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-15 04:24:01 +01:00
19 lines
468 B
PowerShell
Executable File
19 lines
468 B
PowerShell
Executable File
<#
|
|
.SYNOPSIS
|
|
Answers to 'good morning'
|
|
.DESCRIPTION
|
|
This script says a reply to "good morning" by text-to-speech (TTS).
|
|
.EXAMPLE
|
|
PS> ./good-morning
|
|
.NOTES
|
|
Author: Markus Fleschutz · License: CC0
|
|
.LINK
|
|
https://github.com/fleschutz/PowerShell
|
|
#>
|
|
|
|
$Reply = "Good morning.", "Good morning to you too.", "Well, good morning to you too.", "Good morning! How are you?", "Morning." | Get-Random
|
|
|
|
"$Reply"
|
|
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
|
exit 0 # success
|