Skip to content

Commit 3a8411f

Browse files
authored
Add files via upload
1 parent 07af8a2 commit 3a8411f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Smash Mouth Troll/troll.ps1

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
function Troll {
2+
Add-Type -AssemblyName System.Windows.Forms
3+
4+
$lyrics = @(
5+
"Somebody once told me the world is gonna roll me"
6+
"I ain't the sharpest tool in the shed"
7+
"She was looking kind of dumb with her finger and her thumb"
8+
"In the shape of an 'L' on her forehead"
9+
"Well, the years start coming and they don't stop coming",
10+
"and they don't stop coming"
11+
)
12+
13+
foreach ($line in $lyrics) {
14+
if ($line -eq "and they don't stop coming") {
15+
while ($true) {
16+
[System.Windows.Forms.MessageBox]::Show($line, "meme", [System.Windows.Forms.MessageBoxButtons]::OK)
17+
}
18+
}
19+
else {
20+
[System.Windows.Forms.MessageBox]::Show($line, "meme", [System.Windows.Forms.MessageBoxButtons]::OK)
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)