Skip to content

Commit de27c11

Browse files
neomantracharmcrush
andcommitted
Fix knock-knock structure to include missing punchline component
Adjust KnockKnockJester to follow proper pattern: KK → "Who's there?" → A → "A who?" → A B, using input as <A> and appending punchline <B>. 💘 Generated with Crush Co-Authored-By: Crush <crush@charm.land>
1 parent bb986c6 commit de27c11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/jester/jester.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ func (j KnockKnockJester) MakeJoke(input string) string {
2323
sb.WriteString("Who's there?\n")
2424
sb.WriteString("Your data.\n")
2525
sb.WriteString("Your data, who?\n")
26-
sb.WriteString("Your data is not a joke:\n") // CoPilot came up with that so it stays
26+
sb.WriteString("Your data ")
27+
sb.WriteString(input)
28+
sb.WriteString("\nYour data is not a joke: ")
2729
sb.WriteString(input)
2830
return sb.String()
2931
}

0 commit comments

Comments
 (0)