A modern, multi-device WhatsApp bot
Powered by Baileys โ optimized for speed, flexibility, and automation.
DANUWA-MD is a multi-device WhatsApp bot written in Node.js using the Baileys library. It supports QR/Pairing code login, a plugin-based command system, and various media tools such as sticker conversion, song and video downloads, and group management commands.
- Session ID
- Gemini API (Optional)
- OPENAI(gpt-4to-mini) API (Optional)
- Skymantion API (Optional)
-
Fork the Repository
DANUWA-MD GitHub Repo -
Generate Session ID
Generate Session ID - 1
OR
Generate Session ID - 2 -
Configure Session and Owner Info
- Edit
config.js
with your session ID and owner number (international format) - Edit
config.js
with your Gemini API Key (Optional) - Edit
config.js
with your OPENAI(gpt-4to-mini) API Key (Optional) - Edit
config.js
with your Skymantion API Key (Optional)
-
Click the "Launch in GitHub Codespaces" button above.
-
Sign in with your GitHub account if needed.
-
Choose your forked repository (
DANUWA-MD
) to open in a new Codespace. -
Wait for GitHub to set up your development environment.
-
In the terminal, install dependencies using:
npm install
-
Start the bot using:
node index.js
- Click the "Run on Replit" button above to begin deployment.
- Log in to Replit using your GitHub account if prompted.
- On your Replit dashboard, click the โ โCreate Replโ button in the left sidebar.
- Select โImport from GitHubโ and paste the link to your forked
DANUWA-MD
repository. - Replit will automatically import and set up your project.
- Once ready, click the โRunโ button at the top โ the bot will start and show logs in the console.
โ
Note:
Make sure your repository includes all required files (index.js
, plugins
, auth/
, etc.) and no essential configuration is missing.
After you've added your session ID and updated the owner number in config.js
, follow these steps to deploy your bot using GitHub Actions:
-
In your forked repository, click on the Actions tab in the navigation bar.
-
In the search bar that says โSearch workflowsโ, type
node.js
. Youโll see a workflow template named Node.js โ click on it to start configuring. -
Once the workflow editor opens, delete all the existing code inside the editor.
-
Copy and paste the following GitHub Actions configuration into the editor:
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm start
- run: npm test
-
Once pasted, commit the changes.
-
GitHub will now automatically deploy your bot using this workflow when you push updates to the
main
branch.
โ
Note: Make sure all required files (index.js
, config.js
, plugins/
, auth/
, etc.) are properly configured and committed to your repository before triggering the workflow.
You can easily deploy your own instance of DANUWA-MD on Railway with just one click.
-
Click the "Deploy on Railway" button.
-
Connect your GitHub account and authorize access if prompted.
-
Click deploy now button.
-
Fill in the required environment variables (e.g., SESSION_ID, OWNER_NUMBER, etc.).
Click "Deploy" โ Railway will handle the rest!
DANUWA-MD is designed with scalability, flexibility, and functionality in mind. Hereโs what it offers:
Category | Description |
---|---|
๐ Multi-Device Support | Seamless compatibility with WhatsApp Multi-Device using the Baileys library. |
๐ฑ QR/Pairing Login | Secure and easy authentication via QR code or pairing session. |
๐ฆ Modular Plugin Architecture | Easily extend functionality with a clean, plugin-based command system. |
๐ต Media Tools | Download music and videos from platforms like YouTube, Facebook, and more. |
๐ผ๏ธ Sticker Tools | Convert images, videos, and GIFs to high-quality stickers in WebP format. |
๐ฅ Group Management | Manage WhatsApp groups with commands to add, remove, promote, demote, etc. |
๐ง Smart Interaction | Reply-based command handling for a more interactive and context-aware experience. |
โ๏ธ Developer Friendly | Built in Node.js with a clean, modular structureโperfect for customization and contributions. |
๐๏ธ File Handling | Upload, download, and manage documents, past papers, and media files with ease. |
๐ Search Utilities | Fetch results from Google, Wikipedia, and other sources directly from chat. |
๐ฎ Fun & Games | Enjoy mini-games, quizzes, and entertainment commands built-in for engagement. |
๐ก๏ธ Admin Tools | Enable anti-link, auto-delete, welcome/goodbye messages, and other moderation features. |
๐ Web Integration | Supports express server for web-based pairing and API usage. |
๐ Notes & Reminders | Save notes, set reminders, and manage personal data through chat commands. |
๐ Stats & Uptime | Get bot performance data, uptime tracking, and usage analytics. |
๐ Language Support | Easily switch between multiple languages with dynamic localization support. |
Weโre constantly improving DANUWA-MD to bring more power to your fingertips. Hereโs whatโs on the roadmap:
Feature | Description |
---|---|
๐ค AI Chat Integration | Integration with ChatGPT or other LLMs for intelligent conversations and query handling. |
๐ Educational Tools | Access to school syllabi, timetables, and educational content for students. |
๐ฌ Auto Reply & Scheduler | Set up automated replies and scheduled messages for improved automation. |
๐ง Voice Command Support | Execute bot commands using voice messages for hands-free interaction. |
๐ฅ Advanced Downloader | Support for batch downloads, subtitle fetching, and audio format selection. |
๐ Cloud Storage Sync | Integration with Google Drive, MEGA, and OneDrive for media management. |
๐ Advanced Analytics | Detailed usage stats per user/group, plugin insights, and activity heatmaps. |
๐ User Profiles & Permissions | Role-based access control for different users (admin, user, guest). |
๐ฒ Companion App | Mobile-friendly frontend for managing plugins, sessions, and logs visually. |
๐จ Custom UI Themes | Customize bot response styles, sticker frames, and preview cards. |
Danuka Disanayaka is a passionate full-stack developer and automation enthusiast with a focus on building scalable bots, AI integrations, and open-source tools. With a deep understanding of JavaScript, Node.js, and real-time systems, Harshana actively contributes to the developer community by creating tools that simplify communication and task automation. His work emphasizes clean code, performance, and user-centric design.
GitHub โข YouTube โข WhatsApp โข Facebook
This project is licensed under the MIT License.
If you like this project, donโt forget to โญ๏ธ the repo!
โ๏ธ Made with โค๏ธ by DANUKA DISSANAYAKA๐ฅ