Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Snippets #1

Open
JBraunsmaJr opened this issue Jul 23, 2021 · 0 comments
Open

Snippets #1

JBraunsmaJr opened this issue Jul 23, 2021 · 0 comments
Labels

Comments

@JBraunsmaJr
Copy link
Contributor

About

Feature shall allow members to compare the same set of code across different languages. Whether it's for comparison, or to get an idea of how it is written.

Backend

  1. Snippet categories / topics shall be organized via folders.
  2. Each folder shall have 1 markdown file containing a brief description on the topic -- this will become the embedded message.
  3. Small examples inside topic folders shall have the appropriate language extension (.cs, .py, .cpp, .sql, etc)

Commands to support /snippet feature

View

  1. Fuzzy search feature shall be implemented for topic selection -- dropdown to pick which category
  2. Populate a new dropdown menu - languages that are based on category selection (depends on what's available in the folder)
  3. Generate the embedded messages for the appropriate selection. Also, attach the code snippet so users can download it for their records.

Create [Moderator]

  1. Accepts 1 parameter (topic)
  2. It shall then consume either an attached file, OR code block -- and infer the language based on Discord/markdown syntax.
@JBraunsmaJr JBraunsmaJr added enhancement New feature or request Bot Command labels Jul 23, 2021
@JBraunsmaJr JBraunsmaJr added this to the Snippet Assistance milestone Jul 23, 2021
@JBraunsmaJr JBraunsmaJr self-assigned this Jul 23, 2021
@JBraunsmaJr JBraunsmaJr removed their assignment Aug 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant