Sitelet https://github.com/Java-Discord/JavaBot/issues/60
Skip to content

Automatically generate code-blocks for Github gist links in chat #60

Description

@jasonlessenich

Description
Allow inlining of code blocks from GitHub links that have highlighted lines.

Example

Dioxin says:
Check this out:
https://gist.github.com/discorddioxin/27a33cf1376847f4ada29d61390c5198#file-main-java-L13-L16

Bot says:

        box.getItems().add(new Student("First", 111, 3));
        box.getItems().add(new Student("Second", 222, 4));
        box.getSelectionModel().select(0);

→ https://canary.discord.com/channels/648956210850299986/752535909228085348/867505817506414593

Activity

  1. removed their assignment
    on Sep 5, 2021
  2. changed the title [-]Dioxin#9863's Suggestion[/-] [+]Automatically generate code-blocks for Github gist links in chat[/+] on Oct 5, 2021
  3. added a commit that references this issue on Oct 10, 2021
  4. Kemikals commented on Oct 11, 2021

    @Kemikals
    Contributor

    Have been working on this and I have an idea in mind just want to run it by everyone before I polish it up. So gists can hold multiple files. A Gist link can be a link to a whole gist or a file in the gist or even a commit in a gist. My idea for this implementation is to have the bot send the code block and add a forwards and backwards reaction to the message allowing them to navigate the gist and the message be updated.

  5. andrewlalis commented on Oct 11, 2021

    @andrewlalis
    Contributor

    That sounds good, as long as it is relatively simple to keep track of the state without needing to use a database for a relatively minor feature.

  6. added and removed
    enhancementImprovement of an already existing feature
    on Dec 1, 2021
  7. unpinned this issue on Dec 2, 2021
  8. moved this from To-Do to To-Do: Accepted Suggestion in JavaBoton Feb 14, 2022
  9. added theissue type on Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    • Status
      To-Do: Accepted Suggestion

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions