Welcome to Asta Md, an open-source WhatsApp bot developed by Astro. This bot leverages the latest Baileys library to offer a simple yet powerful interface for automating interactions on WhatsApp. Whether you're looking to automate customer service, send notifications, or simply have some fun, Asta Md is the perfect starting point.
- Easy Setup: Get up and running with minimal configuration.
- Message Handling: Automate responses to incoming messages with ease.
- Extensible: Easily add new features and commands to suit your needs.
- API Integration: Seamlessly integrate with other APIs to expand functionality.
This is Important To Run Your Bot
For Advanced Users, make sure you have the following:
- Node.js (version 16 or higher)
- npm (Node Package Manager)
- Star & Fork Repo
- Get Your Session ID
- Put Your Session ID in
config.js
file
-
Clone Your Forked Repository:
git clone https://github.com/astro/asta-md.git cd asta-md
-
Install dependencies:
npm install
-
Configure the bot:
- Rename
.env.example
to.env
and fill in your WhatsApp credentials (Only If you Didn't Config It Eariler).
- Rename
-
Start the bot:
npm start
Once the bot is running, it will automatically connect to WhatsApp and start handling messages based on the predefined commands and handlers. You can customize and add new functionalities by editing the commands
directory.
-
Create a new file in the
plugins
directory, for examplehi.js
. -
Define the command logic using the following template:
import amd from './lib'; amd( { pattern: "hi", // The Command Name alias: "hello" // Command Secondary Trigger fromMe: true, // is the message from the owner desc: "Send Hi Message", // Command Description type: "Test", // Command Category }, async (message) => { await message.send("Hello There"); } );
-
Ensure that your new command file is correctly imported and utilized within your main bot setup. Apply at your own end
- Press
F1
and selectRemote-Containers: Open Folder in Container
. - In the
config.js
file put your Session Id inSESSION_ID
variable. - Start the bot using the terminal in VS Code:
npm start
- Sign in to Koyeb.
- Create a new App and link your GitHub repository.
- In the your forked repository make sure you out your session Id in
config.js
file
- Deploy your app directly from the Koyeb dashboard.
- Sign in to Railway.
- Create a new project and link your GitHub repository.
- Configure the environment variables from your github forked repository.
- Deploy the project from the Railway dashboard.
termux-setup-storage
apt update
apt upgrade
pkg update && pkg upgrade
pkg install bash
pkg install libwebp
pkg install git -y
pkg install nodejs -y
pkg install ffmpeg -y
pkg install wget
pkg install imagemagick -y
git clone Your Forked Github Url
cd Asta-Md
npm i
npm start
We welcome contributions from the community! To contribute, please follow the guidelines provided here:
- Fork the repository.
- Create a new branch with your feature or bugfix.
- Make your changes and commit them with clear messages.
- Push your branch and open a Pull Request.
Asta Md is released under the GNU General Public License v2.0.
For any questions or feedback, feel free to contact us via Telegram:
- Astropeda (Direct contact)
- Asta Support (Support channel)