Rename to write-joke.ps1

This commit is contained in:
Markus Fleschutz
2021-08-05 14:45:53 +02:00
parent 66d169d9cb
commit d57ff61273
3 changed files with 7 additions and 9 deletions

View File

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

View File

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