From 8ea938067f0442d47d1243e5b80048c4dd07903f Mon Sep 17 00:00:00 2001 From: Markus Date: Sat, 11 Dec 2021 17:24:41 +0100 Subject: [PATCH] Add sorry.ps1 --- Docs/VoiceControl.md | 1 + Scripts/sorry.ps1 | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 Scripts/sorry.ps1 diff --git a/Docs/VoiceControl.md b/Docs/VoiceControl.md index 2a599c5e..845a64e1 100644 --- a/Docs/VoiceControl.md +++ b/Docs/VoiceControl.md @@ -127,6 +127,7 @@ When finished say: *"Close tab"* or: *"Computer, close [name] browser"* to close * *"Computer, locate my phone"* * *"Computer, repeat last reply"* - repeats the last reply given * *"Computer, roll a dice"* - returns a dice number +* *"Computer, sorry"* * *"Computer, tell joke."* * *"Computer, tell quote."* * *"Computer, switch wallpaper."* diff --git a/Scripts/sorry.ps1 b/Scripts/sorry.ps1 new file mode 100644 index 00000000..068d06f3 --- /dev/null +++ b/Scripts/sorry.ps1 @@ -0,0 +1,17 @@ +<# +.SYNOPSIS + Replies to "Sorry" +.DESCRIPTION + This script replies to 'Sorry' by text-to-speech (TTS). +.EXAMPLE + PS> ./sorry +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +$Reply = "Never mind." | Get-Random + +& "$PSScriptRoot/give-reply.ps1" "$Reply" +exit 0 # success