-
Notifications
You must be signed in to change notification settings - Fork 14
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
Improved LeetCode Discord Bot with User Comparison and Express.js Conversion #5
Conversation
Please checkout and let me know about the other changes |
I've my exam tomorrow. I'll start reviewing PR from 4th October. |
sure , all the best for it |
Can you review it now |
@ag21o9 pr has some merge conflicts. please fix it. |
Hey, the new merge now allows a systematic command handling! export default { make commands work. |
I will resolve the merge conflicts |
I have solved the merge conflicts |
Can you review it now |
@ag21o9 pr still has some merge conflicts. please fix it. |
Check Out now please |
please refer and merge now |
I don't believe this feature serves any practical purpose, so we will not proceed with it. |
fixes issue #1
fixes issue #3
This PR addresses issue #1 and issue #3 by introducing a new user comparison feature and migrating the LeetCode Discord bot code to Express.js.
New Feature: User Comparison
A new command, ;compare, allows users to compare two LeetCode profiles by entering usernames as arguments (e.g., ;compare username1 username2).
The bot retrieves and displays contest data for both users, including:
Contests Attended
Rating
Top Percentage
Badge (if applicable)
This feature fosters healthy competition and analysis among users.
Express.js Conversion
The codebase has been successfully migrated from its original form to Express.js, providing a more efficient and structured framework.
This conversion offers several benefits:
Improved code organization and maintainability through separation of concerns.
Enhanced scalability for potential future features.
Adherence to a widely used and popular Node.js framework.
Existing Commands
The bot continues to support the following commands:
;potd: Shows the daily LeetCode challenge.
;random: Displays a random LeetCode problem.
;user : Retrieves and displays user information (contest data, streak, etc.).
;streak : Shows the current LeetCode streak for a user.
;help: Provides a list of available commands and their functionalities.