PowerShell/Scripts/bye-bye.ps1

19 lines
386 B
PowerShell
Raw Normal View History

2021-11-26 15:13:16 +01:00
<#
.SYNOPSIS
Say an answer to 'bye bye'
.DESCRIPTION
This script answers to "bye bye" by text-to-speech (TTS).
.EXAMPLE
PS> ./bye-bye
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
$Answer = "Good bye.", "See you.", "Bye bye." | Get-Random
& "$PSScriptRoot/speak-english.ps1" "$Answer"
2021-11-27 14:16:50 +01:00
write-output "$Answer"
2021-11-26 15:13:16 +01:00
exit 0 # success