PowerShell/Scripts/good-night.ps1
2021-11-27 14:16:50 +01:00

19 lines
484 B
PowerShell

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