mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-22 01:48:20 +02:00
Rename to write-joke.ps1
This commit is contained in:
parent
66d169d9cb
commit
d57ff61273
@ -26,7 +26,7 @@ Mega Collection of PowerShell Scripts
|
|||||||
* [speak-french.ps1](Scripts/speak-french.ps1) - speaks the given text with a French text-to-speech (TTS) voice
|
* [speak-french.ps1](Scripts/speak-french.ps1) - speaks the given text with a French text-to-speech (TTS) voice
|
||||||
* [speak-german.ps1](Scripts/speak-german.ps1) - speaks the given text with a German text-to-speech (TTS) voice
|
* [speak-german.ps1](Scripts/speak-german.ps1) - speaks the given text with a German text-to-speech (TTS) voice
|
||||||
* [speak-italian.ps1](Scripts/speak-italian.ps1) - speaks the given text with an Italian text-to-speech (TTS) voice
|
* [speak-italian.ps1](Scripts/speak-italian.ps1) - speaks the given text with an Italian text-to-speech (TTS) voice
|
||||||
* [speak-joke.ps1](Scripts/speak-joke.ps1) - speaks the next joke by text-to-speech (TTS)
|
* [speak-joke.ps1](Scripts/speak-joke.ps1) - speaks a random Chuck Norris joke by text-to-speech (TTS)
|
||||||
* [speak-test.ps1](Scripts/speak-test.ps1) - performs a speak test by text-to-speech (TTS)
|
* [speak-test.ps1](Scripts/speak-test.ps1) - performs a speak test by text-to-speech (TTS)
|
||||||
* [speak-text.ps1](Scripts/speak-text.ps1) - speaks the given text by text-to-speech (TTS)
|
* [speak-text.ps1](Scripts/speak-text.ps1) - speaks the given text by text-to-speech (TTS)
|
||||||
* [speak-time.ps1](Scripts/speak-time.ps1) - speaks the current time by text-to-speech (TTS)
|
* [speak-time.ps1](Scripts/speak-time.ps1) - speaks the current time by text-to-speech (TTS)
|
||||||
@ -218,7 +218,6 @@ Mega Collection of PowerShell Scripts
|
|||||||
* [locate-ipaddress.ps1](Scripts/locate-ipaddress.ps1) - prints the geographic location of the given IP address
|
* [locate-ipaddress.ps1](Scripts/locate-ipaddress.ps1) - prints the geographic location of the given IP address
|
||||||
* [locate-zip-code.ps1](Scripts/locate-zip-code.ps1) - prints the geographic location of the given zip-code
|
* [locate-zip-code.ps1](Scripts/locate-zip-code.ps1) - prints the geographic location of the given zip-code
|
||||||
* [moon.ps1](Scripts/moon.ps1) - prints the current moon phase
|
* [moon.ps1](Scripts/moon.ps1) - prints the current moon phase
|
||||||
* [next-joke.ps1](Scripts/next-joke.ps1) - gets the next random Juck Norris joke
|
|
||||||
* [reboot-fritzbox.ps1](Scripts/reboot-fritzbox.ps1) - reboots the FRITZ!box device
|
* [reboot-fritzbox.ps1](Scripts/reboot-fritzbox.ps1) - reboots the FRITZ!box device
|
||||||
* [scan-ports.ps1](Scripts/scan-ports.ps1) - scans the network for open/closed ports
|
* [scan-ports.ps1](Scripts/scan-ports.ps1) - scans the network for open/closed ports
|
||||||
* [send-email.ps1](Scripts/send-email.ps1) - sends an email message
|
* [send-email.ps1](Scripts/send-email.ps1) - sends an email message
|
||||||
@ -242,6 +241,7 @@ Mega Collection of PowerShell Scripts
|
|||||||
* [write-braille.ps1](Scripts/write-braille.ps1) - writes the given text in Braille
|
* [write-braille.ps1](Scripts/write-braille.ps1) - writes the given text in Braille
|
||||||
* [write-green.ps1](Scripts/write-green.ps1) - writes the given text in a green foreground color
|
* [write-green.ps1](Scripts/write-green.ps1) - writes the given text in a green foreground color
|
||||||
* [write-lowercase.ps1](Scripts/write-lowercase.ps1) - writes the given text in lowercase letters
|
* [write-lowercase.ps1](Scripts/write-lowercase.ps1) - writes the given text in lowercase letters
|
||||||
|
* [write-joke.ps1](Scripts/write-joke.ps1) - writes a random Juck Norris joke
|
||||||
* [write-marquee.ps1](Scripts/write-marquee.ps1) - writes the given text as marquee
|
* [write-marquee.ps1](Scripts/write-marquee.ps1) - writes the given text as marquee
|
||||||
* [write-morse-code.ps1](Scripts/write-morse-code.ps1) - writes the given text in Morse code
|
* [write-morse-code.ps1](Scripts/write-morse-code.ps1) - writes the given text in Morse code
|
||||||
* [write-motd.ps1](Scripts/write-motd.ps1) - writes the message of the day (MOTD)
|
* [write-motd.ps1](Scripts/write-motd.ps1) - writes the message of the day (MOTD)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
speak-joke.ps1
|
speak-joke.ps1
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Speaks the next joke by text-to-speech (TTS)
|
Speaks a random Chuck Norris joke by text-to-speech (TTS)
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> .\speak-joke.ps1
|
PS> .\speak-joke.ps1
|
||||||
.LINK
|
.LINK
|
||||||
@ -13,9 +13,7 @@
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$PathToRepo = "$PSScriptRoot/.."
|
$Table = import-csv "$PSScriptRoot/../Data/jokes.csv"
|
||||||
|
|
||||||
$Table = import-csv "$PathToRepo/Data/jokes.csv"
|
|
||||||
|
|
||||||
$Generator = New-Object System.Random
|
$Generator = New-Object System.Random
|
||||||
$Index = [int]$Generator.next(0,66)
|
$Index = [int]$Generator.next(0,66)
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
next-joke.ps1
|
write-joke.ps1
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Prints the next random Juck Norris joke
|
Writes a random Juck Norris joke to the console.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> .\next-joke.ps1
|
PS> .\write-joke.ps1
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
Loading…
Reference in New Issue
Block a user