mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-30 12:41:46 +02:00
Add roll-a-dice.ps1
This commit is contained in:
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
|
Reference in New Issue
Block a user