{"id":25622536,"url":"https://github.com/exphert/shanghai","last_synced_at":"2026-04-30T12:33:06.362Z","repository":{"id":250333020,"uuid":"834147231","full_name":"exphert/shanghai","owner":"exphert","description":"Shanghai is an automated bot for adding contacts to a WhatsApp group.","archived":false,"fork":false,"pushed_at":"2024-07-27T15:49:11.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T05:27:56.243Z","etag":null,"topics":["automated","bot","contact","group","management","node","nodejs","whatsapp","whatsapp-automation","whatsapp-bot","whatsapp-web-js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exphert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-07-26T14:16:50.000Z","updated_at":"2024-07-27T15:49:13.000Z","dependencies_parsed_at":"2024-09-11T17:10:56.749Z","dependency_job_id":"a4980098-62c3-4a84-9c3a-7dd3dcef3d28","html_url":"https://github.com/exphert/shanghai","commit_stats":null,"previous_names":["sansxpl/shanghai","erozx/shanghai","unpwned/shanghai","unpawn/shanghai","exphert/shanghai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/exphert/shanghai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exphert%2Fshanghai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exphert%2Fshanghai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exphert%2Fshanghai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exphert%2Fshanghai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exphert","download_url":"https://codeload.github.com/exphert/shanghai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exphert%2Fshanghai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32465009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["automated","bot","contact","group","management","node","nodejs","whatsapp","whatsapp-automation","whatsapp-bot","whatsapp-web-js"],"created_at":"2025-02-22T10:19:36.351Z","updated_at":"2026-04-30T12:33:06.339Z","avatar_url":"https://github.com/exphert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"\" rel=\"noopener\"\u003e\n \u003cimg height=200px src=\"https://i.imgur.com/hiRIpy2.png\" alt=\"Shanghai\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e \nShanghai is a simple but useful bot designed to automate the process of adding contacts to a WhatsApp group. Its name, \"Shanghai,\" reflects its function of 'kidnapping' contacts into the group.\n    \u003c/br\u003e \u003c/br\u003e \n    \u003cimg src=\"https://img.shields.io/badge/NODEJS-18.x-ebcb8b?style=flat-square\"/\u003e  \u003cimg src=\"https://img.shields.io/badge/LICENSE-MIT-blue?style=flat-square\"/\u003e \u003cimg src=\"https://img.shields.io/badge/VERSION-1.0.0-a3be8c?style=flat-square\"/\u003e\u003cbr/\u003e\n\u003c/p\u003e\n\n\u003cp align='center'\u003e\n\u003ca href=\"#features\"\u003e\u003cimg src=\"https://img.shields.io/badge/features-2e3440?style=for-the-badge\"/\u003e\u003c/a\u003e \u003ca href=\"#getting_started\"\u003e\u003cimg src=\"https://img.shields.io/badge/Getting Started-2e3440?style=for-the-badge\"/\u003e\u003c/a\u003e \u003ca href=\"#prerequisites\"\u003e\u003cimg src=\"https://img.shields.io/badge/Prerequisites-2e3440?style=for-the-badge\"/\u003e\u003c/a\u003e \u003ca href=\"#installation\"\u003e\u003cimg src=\"https://img.shields.io/badge/Installation-2e3440?style=for-the-badge\"/\u003e\u003c/a\u003e \u003ca href=\"#usage\"\u003e\u003cimg src=\"https://img.shields.io/badge/Usage-2e3440?style=for-the-badge\"/\u003e\u003c/a\u003e \u003ca href=\"#authors\"\u003e\u003cimg src=\"https://img.shields.io/badge/Authors-2e3440?style=for-the-badge\"/\u003e\u003c/a\u003e \u003ca href=\"#license\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-2e3440?style=for-the-badge\"/\u003e\u003c/a\u003e\n\u003c/p\u003e  \n\n# TODO - v1.1.1\n## Major (later)\n- [ ] Make the gui version\n## Minor\n- [ ] Add english version\n- [ ] Choice to load welcome message from text file\n- [ ] Check each number before adding into group\n- [ ] Can add multiple contact at once\n- [ ] Can add into multiple group at once\n## Patch\n- [ ] Fix auth \u0026 cache folder\n      \n## 🔍 Features \u003ca name = \"features\"\u003e\u003c/a\u003e\n- **Automatic Contact Addition**: Add a list of contacts to a WhatsApp group effortlessly.\n- **Customizable Delays**: Set delay intervals between adding each contact to avoid bans.\n- **Welcome Messages**: Send welcome messages to the group at specified intervals.\n- **Error Handling**: Logs errors and retries on failure, ensuring robust performance.\n- **Real-Time Logging**: Provides real-time logs for monitoring the bot's actions.\n\n## 🚀 Getting Started \u003ca name = \"getting_started\"\u003e\u003c/a\u003e\nFirst of all, nodejs must be installed on the device that will be used. \u003c/br\u003e\n\u003ca href=\"https://nodejs.org/en/download/package-manager\" target=\"_blank\"\u003eDownload here from the official website\u003c/a\u003e\n\n### Prerequisites \u003ca name = \"prerequisites\"\u003e\u003c/a\u003e\n```bash\n- Node.js (v18 or higher)\n- WhatsApp account for authentication that has group admin permissions\n- The number to be added to the group must first be saved to contacts in order to be added to the group.\n```\n\n### Installation \u003ca name = \"installation\"\u003e\u003c/a\u003e\n1. Clone the repository:\n```bash\n$ git clone https://github.com/sansxpl/shanghai.git\n$ cd shanghai\n```\n\n2. Install dependencies:\n```bash\n$ npm install\n```\n\n3. Prepare the contact list:\n   - Create a file named `contact.txt` or edit the existing one in the root directory.\n   - Add phone numbers in the format `+countrycode number`, one per line.\n\n4. Run the bot:\n```bash\n$ npm start\n```\n\n## 🎈 Usage \u003ca name=\"usage\"\u003e\u003c/a\u003e\n1. **Scan QR Code**: On the first run, scan the QR code with your WhatsApp account.\n2. **Input Prompts**: Provide the required inputs such as group name, welcome message, delay interval, and message frequency.\n3. **Monitoring**: Monitor the real-time logs to track the bot's progress and actions.\n\n### Example\nHere’s an example of what the output process looks like:\n(the numbers listed here are fake numbers, for example)\n```bash\n$ npm start\n\n\u003e shanghai@1.0.0 start\n\u003e node index.js\n\n[2024-07-27 12:56:31] [%] Sedang memulai bot, harap tunggu...\n[2024-07-27 12:56:44] [+] User terverifikasi!\n\n        ┓       ┓   •\n       ┏┣┓┏┓┏┓┏┓┣┓┏┓┓\n       ┛┛┗┗┻┛┗┗┫┛┗┗┻┗\n        v1.0.0 ┛\n        By ./SansXpl\n\nMasukkan nama grup (lengkap): My Group\n\n[2024-07-27 12:56:48] [INFO] Bot telah disetting ke grup My Group\n\nMasukkan pesan selamat datang: Welcome to my group!\nMasukkan delay setiap memasukkan kontak (detik): 1\nKirim pesan selamat datang setiap berapa kontak: 1\n\n[2024-07-27 12:57:04] [INFO] Memulai menambahkan kontak\n\n[2024-07-27 12:57:07] [+] Nomor 0123456789 berhasil dimasukkan kedalam grup My Group\n\n[2024-07-27 12:57:07] [INFO] Pesan selamat datang berhasil di kirim ke grup My Group\n\n[2024-07-27 12:57:09] [+] Nomor 1122334455 berhasil dimasukkan kedalam grup My Group\n\n[2024-07-27 12:57:09] [INFO] Pesan selamat datang berhasil di kirim ke grup My Group\n\n[2024-07-27 12:57:10]\n[DONE] Semua kontak telah berhasil di tambahkan\n```\n\n## ✍️ Authors \u003ca name = \"authors\"\u003e\u003c/a\u003e\n\n- [@sansxpl](https://github.com/sansxpl) - Just Coding\n\n## 📃 License \u003ca name = \"license\"\u003e\u003c/a\u003e\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexphert%2Fshanghai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexphert%2Fshanghai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexphert%2Fshanghai/lists"}