PowerShell/Scripts/good-night.ps1
2021-12-01 09:57:36 +01:00

19 lines
467 B
PowerShell

<#
.SYNOPSIS
Answers to 'good night'
.DESCRIPTION
This script says a reply to "good night" by text-to-speech (TTS).
.EXAMPLE
PS> ./good-night
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
$Reply = "Good night to you, too.", "Good night to you, my friend.", "Have a good night. Sleep well.", "Good night and sweet dreams." | Get-Random
"$Reply"
& "$PSScriptRoot/speak-english.ps1" "$Reply"
exit 0 # success