Created
April 10, 2018 00:43
-
-
Save 001SPARTaN/6f92a04740f369cb2be9500ffb7ff314 to your computer and use it in GitHub Desktop.
A ritual to invoke the favor of the demo gods.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#DemoGod | |
########################### | |
Function Invoke-DemoGod{ | |
[Alias('DemoGod','ShowMeWhatYouGot','GiantHead')] | |
Param( | |
# No Speech | |
[Parameter()][Switch]$Silent, | |
# Head Only | |
[Parameter()][Switch]$NoText | |
) | |
# Head | |
$Head = @(" | |
___ | |
. -^ ``--, | |
/# =========``-_ | |
/# (--====___====\ | |
/# .- --. . --.| | |
/## | * ) ( * ), | |
|## \ /\ \ / | | |
|### --- \ --- | | |
|#### ___) #| | |
|###### ##| | |
\##### ---------- / | |
\#### ( | |
``\### | | |
\### | | |
\## | | |
\###. .) | |
``======/ | |
") | |
# Banner | |
$Banner = @(" | |
___ | |
. -^ ``--, | |
/# =========``-_ ____ _ _ __ _ _ _ _ ____ | |
/# (--====___====\ / ___)/ )( \ / \ / )( \ ( \/ )( __) | |
/# .- --. . --.| \___ \) __ (( O )\ /\ / / \/ \ ) _) | |
/## | * ) ( * ), (____/\_)(_/ \__/ (_/\_) \_)(_/(____) | |
|## \ /\ \ / | | |
|### --- \ --- | _ _ _ _ __ ____ | |
|#### ___) #| / )( \/ )( \ / _\(_ _) | |
|###### ##| \ /\ /) __ (/ \ )( | |
\##### ---------- / (_/\_)\_)(_/\_/\_/(__) | |
\#### ( | |
``\### | _ _ __ _ _ ___ __ ____ | |
\### | ( \/ )/ \ / )( \ / __) / \(_ _) | |
\## | ) /( O )) \/ ( ( (_ \( O ) )( | |
\###. .) (__/ \__/ \____/ \___/ \__/ (__) | |
``======/ | |
") | |
## ACTION | |
Clear | |
sleep -sec 1 | |
if(!$Silent){ | |
# Load Voice Stuff | |
Try{ | |
Add-Type -AssemblyName System.speech | |
$SpeechSynth = New-Object System.Speech.Synthesis.SpeechSynthesizer | |
#adjust voice settings | |
$SpeechSynth.volume=90 | |
$SpeechSynth.Rate=-7 | |
} | |
Catch{Write-Warning 'Could Not Load voice...'} | |
} | |
If($NoText){$Head} | |
Else{$Banner} | |
If(!$Silent){ | |
Start-Sleep -Mil 50 | |
# Speak | |
Try{$SpeechSynth.SpeakAsync("Show Me What You Got") | Out-Null}Catch{} | |
}} | |
######End |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment