PowerShell/Scripts/bye-bye.ps1

18 lines
357 B
PowerShell
Raw Normal View History

2021-11-26 15:13:16 +01:00
<#
.SYNOPSIS
2021-12-06 18:48:32 +01:00
Replies to 'bye bye'
2021-11-26 15:13:16 +01:00
.DESCRIPTION
2021-12-06 18:48:32 +01:00
This script says a reply to 'bye bye' by text-to-speech (TTS).
2021-11-26 15:13:16 +01:00
.EXAMPLE
PS> ./bye-bye
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
2021-12-01 09:57:36 +01:00
$Reply = "Good bye.", "See you.", "Bye bye." | Get-Random
2021-11-26 15:13:16 +01:00
2021-12-06 18:48:32 +01:00
& "$PSScriptRoot/give-reply.ps1" "$Reply"
2021-11-26 15:13:16 +01:00
exit 0 # success