{"id":49429255,"url":"https://github.com/altech001/bitnote","last_synced_at":"2026-04-29T11:04:27.787Z","repository":{"id":354172567,"uuid":"1222463449","full_name":"Altech001/Bitnote","owner":"Altech001","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-27T12:03:15.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-27T14:07:54.484Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Altech001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-27T11:46:33.000Z","updated_at":"2026-04-27T12:03:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Altech001/Bitnote","commit_stats":null,"previous_names":["altech001/bitnote"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Altech001/Bitnote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altech001%2FBitnote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altech001%2FBitnote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altech001%2FBitnote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altech001%2FBitnote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Altech001","download_url":"https://codeload.github.com/Altech001/Bitnote/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altech001%2FBitnote/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32422576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-29T11:04:21.376Z","updated_at":"2026-04-29T11:04:27.782Z","avatar_url":"https://github.com/Altech001.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WhatsApp Bot with Baileys\n\nA simple WhatsApp bot that maintains session persistence so you don't lose connection.\n\n## Features\n\n- ✅ **Session Persistence**: Saves authentication data to disk, so you won't lose connection on restart\n- ✅ **Auto Reconnect**: Automatically reconnects if connection is lost (unless logged out)\n- ✅ **QR Code Login**: Scan QR code with WhatsApp to connect\n- ✅ **Simple Commands**: \n  - Send \"ping\" → Bot responds with \"🏓 Pong!\"\n  - Send \"hello\" → Bot sends a greeting message\n\n## Installation\n\nAll dependencies are already installed. If you need to reinstall:\n\n```bash\nnpm install\n```\n\n## Usage\n\n### Start the Bot\n\n```bash\nnpm start\n```\n\nOr directly:\n\n```bash\nnode bot.js\n```\n\n### First Time Setup\n\n1. Run the bot with `npm start`\n2. A QR code will appear in the terminal\n3. Open WhatsApp on your phone\n4. Go to Settings → Linked Devices → Link a Device\n5. Scan the QR code\n6. Once connected, you'll see \"✅ Connected successfully!\"\n\n### Session Management\n\n- Session data is stored in the `session/` folder\n- The bot will automatically use saved session on restart\n- To logout completely, delete the `session/` folder and restart\n\n## How It Works\n\n1. **Authentication**: Uses `useMultiFileAuthState` to save credentials to disk\n2. **Session Persistence**: Credentials are saved every time they update\n3. **Auto Reconnect**: Detects disconnections and reconnects automatically (except when logged out)\n4. **Message Handling**: Listens for incoming messages and responds based on content\n\n## Customization\n\nEdit the `bot.js` file to add your own commands:\n\n```javascript\n// Add your custom logic in the messages.upsert event\nif (messageType.toLowerCase() === 'your-command') {\n    await sock.sendMessage(senderId, { text: 'Your response' });\n}\n```\n\n## Troubleshooting\n\n- **QR code not appearing**: Make sure terminal supports it\n- **Connection lost**: Check your internet connection\n- **Logged out**: Delete the `session/` folder and scan QR again\n- **Messages not sending**: Ensure you're connected and the recipient hasn't blocked you\n\n## Dependencies\n\n- [@whiskeysockets/baileys](https://github.com/WhiskeySockets/Baileys) - WhatsApp Web API\n- [qrcode-terminal](https://www.npmjs.com/package/qrcode-terminal) - Display QR codes in terminal\n- [pino](https://getpino.io/) - Logging utility\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltech001%2Fbitnote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltech001%2Fbitnote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltech001%2Fbitnote/lists"}