-
Notifications
You must be signed in to change notification settings - Fork 24
AutoCodeFormatter #425
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
AutoCodeFormatter #425
Conversation
- added AutoCodeFormatter.java - added a preference for enabling/disabling AutoCodeFormatter - added a Setting in HelpConfig: hint for when users don't format their code - added a Setting in HelpConfig: footnote for when code has been autoformatted - edited HelpListener to include a call to AutoCodeFormatter.java - moved replaceMemberMessage from HugListener to WebhookUtil to allow usage from within AutoCodeFormatter.java
|
*nvm my IDE is set to use spaces for indentation. I'll open a new pull request once I've changed that. |
danthe1st
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are writing way to much code in a single line making the code hard to read.
src/main/java/net/javadiscord/javabot/data/config/guild/HelpConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/listener/HugListener.java
Outdated
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/systems/help/AutoCodeFormatter.java
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/systems/help/AutoCodeFormatter.java
Outdated
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/systems/help/AutoCodeFormatter.java
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/systems/help/HelpListener.java
Outdated
Show resolved
Hide resolved
|
Also, this should only be deployed with/after #422 because it uses preferences which are currently broken (the command is not registered). |
src/main/java/net/javadiscord/javabot/systems/help/AutoCodeFormatter.java
Outdated
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/systems/help/HelpListener.java
Outdated
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/systems/help/HelpListener.java
Outdated
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/systems/help/AutoCodeFormatter.java
Outdated
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/systems/help/AutoCodeFormatter.java
Outdated
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/systems/help/AutoCodeFormatter.java
Outdated
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/systems/help/AutoCodeFormatter.java
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/systems/help/AutoCodeFormatter.java
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/data/config/guild/HelpConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/net/javadiscord/javabot/systems/help/AutoCodeFormatter.java
Show resolved
Hide resolved
|
** removed unused method |
The constant |
Currently, the system uses "{" and "}" to detect a codeblock that isnt formatted correctly.
Merge/deploy note
This should only be deployed with/after #422 because it uses preferences which are currently broken (the command is not registered).