-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor code and cleanup #12
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
base: main
Are you sure you want to change the base?
Conversation
W2Wizard
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.
Yes I did this now after months right during my internship.
Only ask you to actually triple check if this works.
|
|
||
| export function random() { | ||
| return Math.random() < Config.randomEvalChance / 100; | ||
| } |
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.
Why ? The whole idea is to separate all potential checks into their own files to avoid cluttering them into a giant file like this.
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.
Also please start using docs.
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.
I'll add comments
And I moved it to a single file because they're all part of the same Checks namespace
Otherwise you have 2 files with < 5 LOC in it
Now we have one file with 55 lines
Much cleaner
|
Stop changing my messages |
I refactored and simplified some parts of the bot, mainly in regards to the database wrapper to avoid more bloat. #Joptimized
Also I need to learn how to make PR's since I am a junior dev.