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

mclo.gs upload #431

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

Conversation

TheKodeToad
Copy link
Member

@TheKodeToad TheKodeToad commented Oct 19, 2024

Motivation: when attachments are sent directly on Discord people usually ask the sender to upload on mclo.gs. Downloading files and opening them in a text editor can be a bit of a hassle (especially if you are on mobile, also I don't like downloading things constantly)

The new Info enum is designed so that we can add things like launcher_version: Option<String>, loader: Option<String>

If the user uploads a log which looks like a Minecraft or Launcher log, this prompt will show:

image

Otherwise, neither this prompt nor the no issues found message will appear.

If the user chooses to have their Minecraft log uploaded, this will appear once it has finished:
image

Sorry if this code is not the best, I realise the event handler functions are less concise now. I wanted to add a check to ensure the button is not pressed twice, but I did not manage to find a library or class which makes this easy

@TheKodeToad TheKodeToad added the enhancement New feature or request label Oct 19, 2024
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

clippy found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@TheKodeToad
Copy link
Member Author

I know, I know. my code is garbage

src/handlers/event/analyze_logs/mod.rs Fixed Show fixed Hide fixed
src/handlers/event/analyze_logs/mod.rs Fixed Show fixed Hide fixed
src/handlers/event/analyze_logs/mod.rs Show resolved Hide resolved
src/handlers/event/analyze_logs/mod.rs Dismissed Show dismissed Hide dismissed
src/utils/mod.rs Fixed Show fixed Hide fixed
src/utils/mod.rs Fixed Show fixed Hide fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant