-
Notifications
You must be signed in to change notification settings - Fork 1
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
Restructures & Improvements for Sugar. #9
base: main
Are you sure you want to change the base?
Conversation
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.
nice :D i have nits, but i just wanted to review cuz i'm a bit bored 😆
sugar/src/utils/discord/embeds.ts
Outdated
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.
oh nice, is this for labs?
sugar/src/utils/retry.ts
Outdated
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.
were you the original author of these changes, or was it lyus? :o
whoever it was must really not like semicolons 😆
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.
Originally, Sugar was under Lyus, but I took over and basically did it from scratch. Hey, it's hard to write semicolons as someone who's been writing Kotlin for a long while now 😆 It doesn't help that Golang also doesn't use semicolons nor does JS/TS enforce it lel
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.
We might just set up Prettier so that we don't have to worry about formatting lul
Admittedly, the prior code of sugar wasn't really the best, nor is it going to be the best right now, but this pull request should fix a lot of the issues and add some improvements, such as:
JSON
Node methods over hardcoding JSON (resolved theBigInt
issue).There are no plans to adjust Sugar into a centralized subscriptions handler for now, as the only module it communicates with right now is Tea. Although, that might change in the future, for better maintenance right now, reducing the complexity to this much should be fine.