Skip to content

Easter egg: bot denies all paternity suits - #4

Closed
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1791511513-paternity-quip
Closed

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1791511513-paternity-quip

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Adds a paternity-denial Easter egg: when a message both references the bot and contains a paternity keyword, the bot replies with a random deadpan denial, in the same style as the existing one-liner quips ("Disowned 3 children. Cold.", "That's... the same person.").

Changes

  • matrimony/cogs/matr.py
    • _PATERNITY_QUIPS: new quip table next to _FUN_VERBS, e.g. "I'm a bot. The only thing I can father is a stack trace." and "My `{prefix}{cmd} children` list is empty. Case closed." (filled with the guild's configured prefix).
    • _paternity_accusation(content, bot_user_id): requires BOTH a bot reference (<@id> mention, "matrimony", or the word "bot") and a paternity keyword (pregnan|impregnat|paternit|child support|baby daddy|father of my|knocked me up) — so ordinary chatter about kids doesn't set it off.
    • _maybe_paternity_quip(bot, message): picks a random quip and replies via the usual _embed; honours should_process so the bot never quips at itself.
    • MatrCog.on_message listener delegates to the helper (fires for non-command messages; commands still process normally).
  • README.md: documents the Easter egg under Features.
  • tests/test_quips.py: 6 tests covering detection positives/negatives, reply embed, guild-prefix substitution, and the self-message guard.

Example

someone: <@Matrimony> got me pregnant
Matrimony: I'm a bot. The only thing I can father is a stack trace.

Verified: ruff check . clean, pytest 82 passed.

Link to Devin session: https://app.devin.ai/sessions/2f6c49cb53a945ecb358f1c213789364
Open in Devin Desktop: https://app.devin.ai/desktop/session/2f6c49cb53a945ecb358f1c213789364?variant=devin
Requested by: @CommunityPoke

When a message both references the bot (mention, "matrimony", or the
word "bot") and contains a paternity keyword (pregnant, impregnated,
paternity, child support, baby daddy, ...), the new MatrCog on_message
listener replies with a random deadpan denial from _PATERNITY_QUIPS,
matching the existing one-liner quip style. Requires both signals so
ordinary chatter doesn't set it off.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant