mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 05:04:39 +02:00
Rename to write-joke.ps1
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
speak-joke.ps1
|
||||
.DESCRIPTION
|
||||
Speaks the next joke by text-to-speech (TTS)
|
||||
Speaks a random Chuck Norris joke by text-to-speech (TTS)
|
||||
.EXAMPLE
|
||||
PS> .\speak-joke.ps1
|
||||
.LINK
|
||||
@ -13,9 +13,7 @@
|
||||
#>
|
||||
|
||||
try {
|
||||
$PathToRepo = "$PSScriptRoot/.."
|
||||
|
||||
$Table = import-csv "$PathToRepo/Data/jokes.csv"
|
||||
$Table = import-csv "$PSScriptRoot/../Data/jokes.csv"
|
||||
|
||||
$Generator = New-Object System.Random
|
||||
$Index = [int]$Generator.next(0,66)
|
||||
|
@ -1,10 +1,10 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
next-joke.ps1
|
||||
write-joke.ps1
|
||||
.DESCRIPTION
|
||||
Prints the next random Juck Norris joke
|
||||
Writes a random Juck Norris joke to the console.
|
||||
.EXAMPLE
|
||||
PS> .\next-joke.ps1
|
||||
PS> .\write-joke.ps1
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
Reference in New Issue
Block a user