Add sorry.ps1

This commit is contained in:
Markus 2021-12-11 17:24:41 +01:00
parent 7a332d2b1d
commit 8ea938067f
2 changed files with 18 additions and 0 deletions

View File

@ -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."*

17
Scripts/sorry.ps1 Normal file
View File

@ -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