mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-15 13:05:10 +02:00
Add roll-a-dice.ps1
This commit is contained in:
parent
a92090f052
commit
b9069dd275
@ -130,13 +130,15 @@ When finished say: "Close tab" or: "Computer, close [name] browser" to close the
|
|||||||
* `Computer, bye-bye`
|
* `Computer, bye-bye`
|
||||||
* `Computer, see you`
|
* `Computer, see you`
|
||||||
|
|
||||||
|
|
||||||
💭 Various Voice Commands
|
💭 Various Voice Commands
|
||||||
-------------------------
|
-------------------------
|
||||||
* `Computer, locate my phone`
|
|
||||||
* `Computer, tell joke`
|
|
||||||
* `Computer, tell quote`
|
|
||||||
* `Computer, repeat last reply`
|
|
||||||
* `Computer, connect VPN`
|
* `Computer, connect VPN`
|
||||||
* `Computer, come on`
|
* `Computer, come on`
|
||||||
* `Computer, thank you`
|
* `Computer, give me five`
|
||||||
* `Computer, give me five`
|
* `Computer, locate my phone`
|
||||||
|
* `Computer, repeat last reply`
|
||||||
|
* `Computer, roll a dice`
|
||||||
|
* `Computer, tell joke`
|
||||||
|
* `Computer, tell quote`
|
||||||
|
* `Computer, thank you`
|
17
Scripts/roll-a-dice.ps1
Normal file
17
Scripts/roll-a-dice.ps1
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Replies to "Roll a dice"
|
||||||
|
.DESCRIPTION
|
||||||
|
This script rolls a dice and returns the number by text-to-speech (TTS).
|
||||||
|
.EXAMPLE
|
||||||
|
PS> ./roll-a-dice
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
#>
|
||||||
|
|
||||||
|
$Reply = "One.", "Two.", "Three.", "Four.", "Five.", "Six." | Get-Random
|
||||||
|
|
||||||
|
& "$PSScriptRoot/give-reply.ps1" "$Reply"
|
||||||
|
exit 0 # success
|
Loading…
Reference in New Issue
Block a user