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

React to file line links #138

Open
trag1c opened this issue Jan 27, 2025 · 0 comments
Open

React to file line links #138

trag1c opened this issue Jan 27, 2025 · 0 comments
Labels
new-feature New feature or request

Comments

@trag1c
Copy link
Member

trag1c commented Jan 27, 2025

Very vague idea (details TBD), but the bot could reply to links like https://github.com/ghostty-org/discord-bot/blob/main/app/components/entity_mentions/fmt.py#L93-L100 with code blocks including the linked code:

    entities = [
        _format_mention(outcome[1], outcome[0])
        for outcome in await asyncio.gather(
            *(entity_cache.get(*m) for m in matches),
            return_exceptions=True,
        )
        if not isinstance(outcome, BaseException)
    ]
@trag1c trag1c added the new-feature New feature or request label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant