mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-02 20:26:56 +02:00
Add bye-bye.ps1
This commit is contained in:
parent
149f1aacbe
commit
6a6f65ebe9
18
Scripts/bye-bye.ps1
Normal file
18
Scripts/bye-bye.ps1
Normal file
@ -0,0 +1,18 @@
|
||||
<#
|
||||
.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
|
||||
|
||||
write-output "$Answer"
|
||||
& "$PSScriptRoot/speak-english.ps1" "$Answer"
|
||||
exit 0 # success
|
@ -11,7 +11,7 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$Answer = "Good bye.", "See you." | Get-Random
|
||||
$Answer = "Good bye.", "See you.", "Bye bye." | Get-Random
|
||||
|
||||
write-output "$Answer"
|
||||
& "$PSScriptRoot/speak-english.ps1" "$Answer"
|
||||
|
Loading…
Reference in New Issue
Block a user