{"id":29702498,"url":"https://github.com/ahmuq/abot-case","last_synced_at":"2026-03-02T17:16:50.944Z","repository":{"id":153393963,"uuid":"612385172","full_name":"ahmuq/abot-case","owner":"ahmuq","description":"Bot WhatsApp Case Multi Devices With Baileys","archived":false,"fork":false,"pushed_at":"2025-06-26T03:09:37.000Z","size":33973,"stargazers_count":26,"open_issues_count":0,"forks_count":22,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T03:45:02.219Z","etag":null,"topics":["botwa","chatbot","chatgpt","javascript","openai","termux","whatsapp"],"latest_commit_sha":null,"homepage":"","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/ahmuq.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}},"created_at":"2023-03-10T20:39:07.000Z","updated_at":"2025-07-06T11:18:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a4c2353-1d5f-4363-9f64-c2604205cfd5","html_url":"https://github.com/ahmuq/abot-case","commit_stats":null,"previous_names":["ahlulmukh/nilou-bot-case","ahlulmukh/abot-case","ahmuq/abot-case"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ahmuq/abot-case","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmuq%2Fabot-case","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmuq%2Fabot-case/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmuq%2Fabot-case/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmuq%2Fabot-case/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmuq","download_url":"https://codeload.github.com/ahmuq/abot-case/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmuq%2Fabot-case/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266680656,"owners_count":23967795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["botwa","chatbot","chatgpt","javascript","openai","termux","whatsapp"],"created_at":"2025-07-23T12:39:27.384Z","updated_at":"2026-03-02T17:16:45.892Z","avatar_url":"https://github.com/ahmuq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\r\n\r\n# 🤖 Abot-MD WhatsApp Bot\r\n\r\n_A powerful and feature-rich WhatsApp bot built with Node.js_\r\n\r\n[![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2Fahlulmukh%2Fabot-case\u0026countColor=%23263759)](https://visitorbadge.io/status?path=https%3A%2F%2Fgithub.com%2Fahlulmukh%2Fabot-case)\r\n[![Forks](https://img.shields.io/github/forks/ahlulmukh/Abot-MD?label=Forks\u0026color=blue\u0026style=flat-square)](https://github.com/ahlulmukh/Abot-MD/network/members)\r\n[![Watchers](https://img.shields.io/github/watchers/ahlulmukh/Abot-MD?label=Watchers\u0026color=green\u0026style=flat-square)](https://github.com/ahlulmukh/Abot-MD/watchers)\r\n[![Stars](https://img.shields.io/github/stars/ahlulmukh/Abot-MD?label=Stars\u0026color=yellow\u0026style=flat-square)](https://github.com/ahlulmukh/Abot-MD/stargazers)\r\n[![Contributors](https://img.shields.io/github/contributors/ahlulmukh/Abot-MD?label=Contributors\u0026color=blue\u0026style=flat-square)](https://github.com/ahlulmukh/Abot-MD/graphs/contributors)\r\n[![Issues](https://img.shields.io/github/issues/ahlulmukh/Abot-MD?label=Issues\u0026color=success\u0026style=flat-square)](https://github.com/ahlulmukh/Abot-MD/issues)\r\n[![Closed Issues](https://img.shields.io/github/issues-closed/ahlulmukh/Abot-MD?label=Closed\u0026color=red\u0026style=flat-square)](https://github.com/ahlulmukh/Abot-MD/issues?q=is%3Aissue+is%3Aclosed)\r\n[![Pull Requests](https://img.shields.io/github/issues-pr/ahlulmukh/Abot-MD?label=PRs\u0026color=success\u0026style=flat-square)](https://github.com/ahlulmukh/Abot-MD/pulls)\r\n[![Closed PRs](https://img.shields.io/github/issues-pr-closed/ahlulmukh/Abot-MD?label=Closed\u0026color=red\u0026style=flat-square)](https://github.com/ahlulmukh/Abot-MD/pulls?q=is%3Apr+is%3Aclosed)\r\n\r\n\u003c/div\u003e\r\n\r\n---\r\n\r\n## 📖 About This Bot\r\n\r\n**Abot-MD** is a comprehensive WhatsApp bot built with Node.js and Baileys library. It features a modular case-based system that makes it easy to use, maintain, and extend with additional functionality.\r\n\r\n### ✨ Key Features\r\n\r\n- 🏗️ **Modular Architecture**: Built with a case-based system for easy development and maintenance\r\n- 🔧 **Highly Configurable**: Easy configuration through setting files\r\n- 🎯 **Multi-Platform Support**: Works on Termux, Ubuntu, Windows, VPS, and RDP\r\n- 🤖 **AI Integration**: Supports OpenAI ChatGPT integration\r\n- 📱 **Rich Media Support**: Handles images, videos, stickers, and documents\r\n- 🛡️ **Security Features**: Anti-link, group management, and user controls\r\n- 💾 **Database Management**: Built-in database for user data, groups, and configurations\r\n- 🎨 **Customizable**: Easy to customize and add new commands\r\n\r\n---\r\n\r\n## 🚀 Installation Guide\r\n\r\n### 📱 For Termux/Ubuntu/SSH Users\r\n\r\n#### Prerequisites\r\n\r\nMake sure you have sufficient storage space and a stable internet connection.\r\n\r\n```bash\r\n# Update system packages\r\napt update \u0026\u0026 apt upgrade -y\r\n\r\n# Install required dependencies\r\napt install git nodejs ffmpeg imagemagick yarn -y\r\n\r\n# Clone the repository\r\ngit clone https://github.com/ahlulmukh/Abot-MD\r\ncd Abot-MD\r\n\r\n# Install project dependencies\r\nyarn install\r\n\r\n# Start the bot\r\nyarn start\r\n```\r\n\r\n### 💻 For Windows/VPS/RDP Users\r\n\r\n#### Prerequisites Installation\r\n\r\nDownload and install the following software:\r\n\r\n| Software        | Link                                                    | Notes                                            |\r\n| --------------- | ------------------------------------------------------- | ------------------------------------------------ |\r\n| **Git**         | [Download](https://git-scm.com/downloads)               | Version control system                           |\r\n| **Node.js**     | [Download](https://nodejs.org/en/download)              | JavaScript runtime (LTS version recommended)     |\r\n| **FFmpeg**      | [Download](https://ffmpeg.org/download.html)            | **Important:** Add to PATH environment variables |\r\n| **ImageMagick** | [Download](https://imagemagick.org/script/download.php) | Image processing library                         |\r\n\r\n#### Installation Steps\r\n\r\n```bash\r\n# Clone the repository\r\ngit clone https://github.com/ahlulmukh/Abot-MD\r\ncd Abot-MD\r\n\r\n# Install dependencies\r\nnpm install\r\n\r\n# Update packages (optional)\r\nnpm update\r\n\r\n# Start the bot\r\nnpm start\r\n```\r\n\r\n### 🐳 Docker Installation (Alternative)\r\n\r\n```bash\r\n# Clone the repository\r\ngit clone https://github.com/ahlulmukh/Abot-MD\r\ncd Abot-MD\r\n\r\n# Build Docker image\r\ndocker build -t abot-md .\r\n\r\n# Run container\r\ndocker run -d --name abot-md-container abot-md\r\n```\r\n\r\n---\r\n\r\n## ⚙️ Configuration\r\n\r\n### Basic Configuration\r\n\r\n1. **Open the configuration file:**\r\n\r\n   ```bash\r\n   config/setting.js\r\n   ```\r\n\r\n2. **Configure the following settings:**\r\n\r\n```javascript\r\n// Bot Owner Configuration\r\nglobal.owner = [\"your_phone_number\"]; // Your phone number without +\r\nglobal.ownerNumber = [\"your_number@s.whatsapp.net\"];\r\nglobal.nomerOwner = \"your_phone_number\";\r\n\r\n// Bot Information\r\nglobal.namabotnya = \"YourBotName\"; // Bot display name\r\nglobal.namaownernya = \"YourName\"; // Your name\r\n\r\n// OpenAI Configuration (for ChatGPT features)\r\nglobal.keyopenai = \"your_openai_api_key_here\"; // Get from https://platform.openai.com/\r\n\r\n// API Keys (Optional)\r\nglobal.APIKeys = {\r\n  \"https://tools.betabotz.eu.org/\": \"your_api_key\",\r\n  \"https://api.ryzendesu.vip/\": \"your_api_key\",\r\n};\r\n```\r\n\r\n### 🔐 Environment Variables\r\n\r\nCreate a `.env` file in the root directory:\r\n\r\n```env\r\n# Bot Configuration\r\nBOT_NAME=Abot-MD\r\nOWNER_NAME=YourName\r\nOWNER_NUMBER=your_phone_number\r\n\r\n# API Keys\r\nOPENAI_API_KEY=your_openai_api_key\r\nBETABOTZ_API_KEY=your_betabotz_api_key\r\nRYZENDESU_API_KEY=your_ryzendesu_api_key\r\n\r\n# Database\r\nDATABASE_URL=your_database_url (if using external database)\r\n```\r\n\r\n---\r\n\r\n## 🏃 Running the Bot\r\n\r\n### Standard Run\r\n\r\n```bash\r\n# Using Node.js\r\nnode main.js\r\n\r\n# Or using npm\r\nnpm start\r\n\r\n# Or using yarn\r\nyarn start\r\n```\r\n\r\n### Development Mode\r\n\r\n```bash\r\n# With auto-restart on file changes\r\nnpm install -g nodemon\r\nnodemon main.js\r\n```\r\n\r\n### Production Mode\r\n\r\n```bash\r\n# Using PM2 for production\r\nnpm install -g pm2\r\npm2 start main.js --name \"abot-md\"\r\npm2 save\r\npm2 startup\r\n```\r\n\r\n---\r\n\r\n## 📚 Project Structure\r\n\r\n```\r\nabot-case/\r\n├── 📁 config/           # Configuration files\r\n│   ├── config.json      # Bot configuration\r\n│   └── setting.js       # Main settings\r\n├── 📁 function/         # Core functionality\r\n│   ├── case.js          # Command handlers\r\n│   ├── 📁 database/     # Database files\r\n│   ├── 📁 lib/          # Utility libraries\r\n│   └── 📁 image/        # Bot images and media\r\n├── 📁 session/          # WhatsApp session data\r\n├── 📁 sticker/          # Sticker configuration\r\n├── main.js              # Main bot file\r\n├── package.json         # Dependencies and scripts\r\n└── README.md           # This file\r\n```\r\n\r\n---\r\n\r\n## 🔧 Commands and Features\r\n\r\n### General Commands\r\n\r\n- `!help` - Display help menu\r\n- `!info` - Bot information\r\n- `!ping` - Check bot response time\r\n\r\n### Media Commands\r\n\r\n- `!sticker` - Convert images/videos to stickers\r\n- `!toimg` - Convert sticker to image\r\n- `!download` - Download media from URLs\r\n\r\n### Group Management\r\n\r\n- `!antilink` - Toggle anti-link protection\r\n- `!welcome` - Set welcome message\r\n- `!kick` - Remove user from group (admin only)\r\n\r\n### AI Features\r\n\r\n- `!ai [question]` - Chat with AI\r\n- `!img [prompt]` - Generate images with AI\r\n\r\n_Use `!menu` command in WhatsApp to see all available commands_\r\n\r\n---\r\n\r\n## 🤝 Contributing\r\n\r\nWe welcome contributions! Here's how you can help:\r\n\r\n1. **Fork the repository**\r\n2. **Create a feature branch**\r\n   ```bash\r\n   git checkout -b feature/amazing-feature\r\n   ```\r\n3. **Commit your changes**\r\n   ```bash\r\n   git commit -m 'Add some amazing feature'\r\n   ```\r\n4. **Push to the branch**\r\n   ```bash\r\n   git push origin feature/amazing-feature\r\n   ```\r\n5. **Open a Pull Request**\r\n\r\n### Development Guidelines\r\n\r\n- Follow the existing code style\r\n- Add comments for complex logic\r\n- Test your changes thoroughly\r\n- Update documentation if needed\r\n\r\n---\r\n\r\n## 🐛 Troubleshooting\r\n\r\n### Common Issues\r\n\r\n#### Bot not responding\r\n\r\n- Check internet connection\r\n- Verify WhatsApp session is active\r\n- Check console for error messages\r\n\r\n#### Installation errors\r\n\r\n- Ensure Node.js version is 16 or higher\r\n- Clear npm cache: `npm cache clean --force`\r\n- Delete `node_modules` and reinstall: `rm -rf node_modules \u0026\u0026 npm install`\r\n\r\n#### Session expired\r\n\r\n- Delete `session` folder\r\n- Restart bot and rescan QR code\r\n\r\n### Getting Help\r\n\r\n- 📧 Email: [ahluldev20@gmail.com](mailto:ahluldev20@gmail.com)\r\n- 💬 Telegram: [@ahlulmukh](https://t.me/ahlulmukh)\r\n- 🐛 Issues: [GitHub Issues](https://github.com/ahlulmukh/Abot-MD/issues)\r\n\r\n---\r\n\r\n## 📄 License\r\n\r\nThis project is licensed under the **ISC License** - see the [LICENSE](LICENSE) file for details.\r\n\r\n---\r\n\r\n## 🙏 Acknowledgments\r\n\r\n- Thanks to [@WhiskeySockets](https://github.com/WhiskeySockets) for the Baileys library\r\n- Thanks to all contributors who help improve this project\r\n- Special thanks to the open-source community\r\n\r\n---\r\n\r\n## 📱 Connect With Developer\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n\r\n[![Instagram](https://img.shields.io/badge/-Instagram-e4405f?style=for-the-badge\u0026logo=Instagram\u0026logoColor=white)](https://www.instagram.com/ahlulmukh)\r\n[![Facebook](https://img.shields.io/badge/-Facebook-1877f2?style=for-the-badge\u0026logo=Facebook\u0026logoColor=white)](https://facebook.com/ahlulmukh)\r\n[![Telegram](https://img.shields.io/badge/-Telegram-0088cc?style=for-the-badge\u0026logo=Telegram\u0026logoColor=white)](https://t.me/ahlulmukh)\r\n[![WhatsApp](https://img.shields.io/badge/-WhatsApp-25d366?style=for-the-badge\u0026logo=WhatsApp\u0026logoColor=white)](https://s.id/1Gqvt)\r\n[![Email](https://img.shields.io/badge/-Email-ea4335?style=for-the-badge\u0026logo=Gmail\u0026logoColor=white)](mailto:ahluldev20@gmail.com)\r\n[![GitHub](https://img.shields.io/badge/-GitHub-181717?style=for-the-badge\u0026logo=GitHub\u0026logoColor=white)](https://github.com/ahlulmukh)\r\n\r\n\u003c/div\u003e\r\n\r\n---\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n\r\n**Made with ❤️ by [Ahlul Mukh](https://github.com/ahlulmukh)**\r\n\r\n_If this project helped you, please consider giving it a ⭐_\r\n\r\n\u003c/div\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmuq%2Fabot-case","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmuq%2Fabot-case","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmuq%2Fabot-case/lists"}