PowerShell/Scripts/thank-you.ps1

18 lines
523 B
PowerShell
Raw Normal View History

2021-10-13 13:32:10 +02:00
<#
.SYNOPSIS
2021-12-06 17:00:49 +01:00
Replies to 'thank you'
2021-10-13 13:32:10 +02:00
.DESCRIPTION
2021-12-06 17:00:49 +01:00
This script replies to 'thank you' by text-to-speech (TTS).
2021-10-13 13:32:10 +02:00
.EXAMPLE
PS> ./thank-you
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
2021-12-07 12:17:10 +01:00
$Reply = "You're welcome.", "You're very welcome.", "That's all right.", "No problem.", "No worries.", "Don't mention it.", "It's my pleasure.", "My pleasure.", "Pleasure is mine.", "Glad to help.", "Anytime." | 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