PowerShell/Scripts/good-night.ps1

18 lines
453 B
PowerShell
Raw Normal View History

<#
.SYNOPSIS
2021-12-06 17:00:49 +01:00
Replies to 'good night'
.DESCRIPTION
2021-12-06 17:00:49 +01:00
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
#>
2021-12-11 17:44:30 +01:00
$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
2021-11-26 14:46:14 +01:00
2021-12-06 17:00:49 +01:00
& "$PSScriptRoot/give-reply.ps1" "$Reply"
2021-11-26 14:46:14 +01:00
exit 0 # success