Skip to content

Match stickers that name the mood first, like "Smug Sharpie" - #8

Merged
HarryCordewener merged 1 commit into
mainfrom
claude/sticker-name-either-order
Dec 2, 2026
Merged

HarryCordewener merged 1 commit into
mainfrom
claude/sticker-name-either-order

Conversation

@HarryCordewener

@HarryCordewener HarryCordewener commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Requested by Grave · project thread

Why

After the redeploy, Sharpie's startup log said Stickers found: Annoyed Sharpie, SharpMUSH, Smug Sharpie, Grinning Sharpie, Concerned Sharpie; moods with a sticker: none. The sticker matcher only accepted names that start with sharpie, so none of these matched.

What changes

  • SharpieFace.IsSticker now also accepts <mood> sharpie. Smug Sharpie now matches the smug mood and Annoyed Sharpie matches annoyed. As before, case, spaces and underscores are ignored.
  • sleepy_sharpie_min still doesn't match.
  • The README and CHANGELOG mention the new word order.

Testing

  • I added two cases to StickersMatchTheMoodByName. The Sleepy Sharpie case failed before the fix and passes after it.
  • 69 tests pass.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Sticker names can now place the mood before or after “Sharpie,” with matching that ignores case, spaces, and underscores. For example, “Sleepy Sharpie” is recognized as a Sleepy sticker.

The server's stickers are named "Smug Sharpie", "Annoyed Sharpie" and so
on, and the startup log showed none of them matched a mood.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HarryCordewener HarryCordewener self-assigned this Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

Sticker matching now accepts mood names before “Sharpie”. The README, changelog, and tests document the supported name forms and examples.

Changes

Sticker name matching

Layer / File(s) Summary
Sticker name matching behavior
README.md, src/Sharpie.Core/Replies/SharpieFace.cs, tests/Sharpie.Tests/LimitsTests.cs, CHANGELOG.md
IsSticker accepts mood-first names while retaining case-insensitive matching and filtering to ASCII letters and digits. Documentation describes both name orders and ignored separators. Tests cover "Sleepy Sharpie" as a match and "sleepy_sharpie_min" as a non-match. The changelog adds "Smug Sharpie" as an example.

Estimated code review effort: 2 (Simple) | ~8 minutes

Suggested reviewers: claude

Merge Risk: Minimal · up to aead2

Sticker matching now also accepts mood-first names such as "Sleepy Sharpie". The change is small and documented, and tests cover both matching and non-matching examples. No merge-blocking risk was identified.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@HarryCordewener
HarryCordewener marked this pull request as ready for review December 2, 2026 22:24
@HarryCordewener
HarryCordewener merged commit bcd48ea into main Dec 2, 2026
2 checks passed
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