-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/improve #2
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?
Feat/improve #2
Changes from all commits
86776f7
cde27cc
64fd9ba
eff88fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "users": { | ||
| "1711055629": { | ||
| "name": "Ayush", | ||
| "roll": "6372373", | ||
| "uni": "IIITM Gwalior" | ||
| } | ||
| }, | ||
| "sessions": { | ||
| "1711055629": { | ||
| "step": "AWAITING_PLATFORM", | ||
| "context": "Make a assignment for bubble sort and give me pdf withe rhr code and code op screenshot", | ||
| "solution": "Assignment: Implementation and Performance Analysis of Bubble Sort Algorithm\nStudent Name: Ayush\nRoll Number: 6372373\nUniversity: IIITM Gwalior\nDate: 4/1/2026\n\n1. Objective\nThe objective of this assignment is to implement the Bubble Sort algorithm, document the step-by-step logic, provide the source code, and analyze its time complexity in the context of sorting an array of integers.\n\n2. Problem Statement\nWrite a program to sort an array of $n$ elements using the Bubble Sort technique. The program must:\na) Accept input size $n$ and an array of $n$ integers from the user.\nb) Perform the sort by repeatedly stepping through the list, comparing adjacent elements, and swapping them if they are in the wrong order.\nc) Display the sorted array.\n\n3. Algorithm Description\nBubble Sort is a comparison-based algorithm where each pair of adjacent elements is compared, and elements are swapped if they are not in order. This process repeats until the array is sorted.\n- Time Complexity: O(n²) in the worst and average cases.\n- Space Complexity: O(1) as it is an in-place sorting algorithm.\n\n4. Source Code (Python)\n```python\ndef bubble_sort(arr):\n n = len(arr)\n for i in range(n):\n for j in range(0, n - i - 1):\n if arr[j] > arr[j + 1]:\n arr[j], arr[j + 1] = arr[j + 1], arr[j]\n return arr\n\n# Driver code\nif __name__ == \"__main__\":\n data = [64, 34, 25, 12, 22, 11, 90]\n print(\"Original array:\", data)\n sorted_data = bubble_sort(data)\n print(\"Sorted array:\", sorted_data)\n```\n\n5. Output Screenshot Placeholder\n[Insert Screenshot of Program Execution Here]\n\n6. Conclusion\nThe implementation confirms that Bubble Sort is effective for smaller datasets but inefficient for large-scale data due to its quadratic time complexity. Proper documentation of the swapping mechanism demonstrates the fundamental working principle of the algorithm.", | ||
| "format": "Pdf with code op" | ||
| } | ||
| } | ||
| } | ||
|
Comment on lines
+1
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. Committed user pii store The PR commits .config/store.json containing a user's name, roll number, university, and full session/solution content. This leaks personal data and must be removed from the repo (and git history) and treated as runtime-only state. Agent Prompt
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1 @@ | ||||||
| TELEGRAM_BOT_TOKEN=8606625998:AAGuNWcFKDyXBSBITEie_NCSqZ2j2GZ6dC4 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. Committed bot token A real TELEGRAM_BOT_TOKEN is committed in .env, allowing anyone with repository access (or leaked history) to fully control the Telegram bot. This secret must be rotated and removed from git history to prevent account takeover. Agent Prompt
|
||||||
| TELEGRAM_BOT_TOKEN=8606625998:AAGuNWcFKDyXBSBITEie_NCSqZ2j2GZ6dC4 | |
| TELEGRAM_BOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN_HERE |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1 +1,71 @@ | ||||||||||||||||||||||||||||||||||||
| # scholarsync | ||||||||||||||||||||||||||||||||||||
| # ScholarSync: Openclaw for students 🎓 | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ScholarSync is an automated study and assignment agent that you interact with directly through your favorite messaging platforms. By providing assignment prompts and specific platform instructions, ScholarSync will solve, format, and upload your academic coursework exactly how you need it. | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ## 🚀 Key Features | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ### 💬 Multi-Platform Messaging Integration | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| Interact with ScholarSync easily on: | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| - **Telegram** | ||||||||||||||||||||||||||||||||||||
| - **WhatsApp** *(Coming soon)* | ||||||||||||||||||||||||||||||||||||
| - **Slack** *(Coming soon)* | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ### 📝 Seamless Onboarding | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| The first time you interact with the bot, you will be onboarded to specify your permanent details: | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| - **Roll Number** | ||||||||||||||||||||||||||||||||||||
| - **Name** | ||||||||||||||||||||||||||||||||||||
| - **University / College** | ||||||||||||||||||||||||||||||||||||
| These details are automatically attached and formatted into your generated assignments. | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ### 📚 Complete Assignment Solving | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| Provide the bot with all required details to solve your assignment (e.g. prompt text, PDF documents, or images via OCR). ScholarSync analyzes the requirements and processes the solution precisely. | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ### 📤 Custom Upload Destinations | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| Tell ScholarSync which platform to upload the finished assignment to (e.g., Moodle, Canvas, Github Classroom, or a custom university portal) and the bot will handle the final submission via browser automation. | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
| Tell ScholarSync which platform to upload the finished assignment to (e.g., Moodle, Canvas, Github Classroom, or a custom university portal) and the bot will handle the final submission via browser automation. | |
| Tell ScholarSync which platform to upload the finished assignment to (e.g., Moodle, Canvas, GitHub Classroom, or a custom university portal) and the bot will handle the final submission via browser automation. |
Copilot
AI
Apr 1, 2026
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.
The npm start comment is now outdated/incorrect: package.json already defines a start script. Consider updating this snippet to just npm start (and document any required tooling like tsx/pm2 if they remain npx-based).
| npm start # (Ensure you configure standard start scripts in package.json to run src/index.ts) | |
| npm start |
Copilot
AI
Apr 1, 2026
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.
The README still directs users to configure a .env file, but the code now also relies on .config/scholar.json (interactive setup) and .env is ignored. Update the getting-started steps to reflect the actual configuration flow and which files users should create.
| 1. Set up your `.env` file with the necessary API Keys (Telegram Bot Token, LLM Config, etc.). | |
| 2. Depending on your needs, you can start the service as a CLI tool or a background Bot Daemon. | |
| 3. Install dependencies: | |
| ```bash | |
| npm install | |
| ``` | |
| 4. Run the development environment: | |
| ```bash | |
| npm start # (Ensure you configure standard start scripts in package.json to run src/index.ts) | |
| ``` | |
| 1. Install dependencies: | |
| ```bash | |
| npm install |
-
Run the development environment for the first time:
npm start # (Ensure you configure standard start scripts in package.json to run src/index.ts)On first launch, ScholarSync will guide you through an interactive setup and create a configuration file at
.config/scholar.json(or~/.config/scholar.json, depending on your environment). This file stores your API keys (Telegram Bot Token, LLM config, etc.) and other runtime settings. -
After setup, you can run ScholarSync either as a CLI tool or as a background bot daemon, depending on your workflow.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
This committed store file contains real user PII and session/assignment content. Runtime state like this shouldn’t be checked in; remove it from the PR and ensure it remains ignored (and consider providing a sample/empty file only if needed).