Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move nitro emojis #166

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

00-kat
Copy link
Contributor

@00-kat 00-kat commented Feb 24, 2025

Continuation of #157, thank you GitHub.

Closes the first part of #155.

_EMOJI_REGEX = re.compile(r"<(a?):(\w+):(\d+)>", re.ASCII)


def _convert_nitro_emojis(s: str, *, force: bool = False) -> str:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure where to put it. It's unlikely to be used outside of the move_message_via_webhook() function, but it also doesn't feel right leaving it in webhook.py. I can't put it in __init__.py as that would cause a circular dependency.

@00-kat 00-kat mentioned this pull request Feb 24, 2025
This is similar to the “fake-nitro” extension in some
things-that-shall-not-be-named.
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