Repository navigation
Easter egg: bot denies all paternity suits - #4
Closed
devin-ai-integration[bot] wants to merge 1 commit into
Closed
devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
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>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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; honoursshould_processso the bot never quips at itself.MatrCog.on_messagelistener 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
Verified:
ruff check .clean,pytest82 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