Repository navigation
Help embed shows one random marital-wisdom quip instead of the full list - #8
Merged
Merged
Conversation
…l quip dump 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
!matr help(and bare!matr) previously dumped all 30_HELP_QUIPSinto the embed description under a "Marital wisdom" section. Each help invocation now picks exactly one quip at random and appends it as a single Discord subtext line (-# <quip>), keeping the embed short while the pool stays in the code._help_embed(prefix, cmd, rng=None)picks(rng or random).choice(_HELP_QUIPS)and renders**Marital wisdom**\n-# {quip}at the bottom of the description; the command listing is unchanged. The optionalrngmakes tests deterministic.matrgroup callback,matr help,on_command_error's unknown-action path) share the behaviour.-#line per invocation from the pool, seeded RNG picks deterministically, different seeds can yield different quips, embed stays under 4096 chars,!matrand!matr helpbehave identically.Link to Devin session: https://app.devin.ai/sessions/2a733256c8ef43ee8e45d295a9db3c9e
Open in Devin Desktop: https://app.devin.ai/desktop/session/2a733256c8ef43ee8e45d295a9db3c9e?variant=devin
Requested by: @CommunityPoke