Git Product home page Git Product logo

asta-md's Introduction

ᴀꜱᴛᴀ ᴍᴅ ʙᴇᴛᴀ 3.5.0

Introduction

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.

Features

  • 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.

Getting Started

Get Your Session

Please Star Our Repo For Courage ❤️

This is Important To Run Your Bot

Prerequisites

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

Installation

For Example
  1. Clone Your Forked Repository:

    git clone https://github.com/astro/asta-md.git
    cd asta-md
  2. Install dependencies:

    npm install
  3. Configure the bot:

    • Rename .env.example to .env and fill in your WhatsApp credentials (Only If you Didn't Config It Eariler).
  4. Start the bot:

    npm start

Usage

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.

Adding Commands

To create your custom new command:

  1. Create a new file in the plugins directory, for example hi.js.

  2. 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");
      }
    );
  3. Ensure that your new command file is correctly imported and utilized within your main bot setup. Apply at your own end

Deploy to Node.js Platforms

Heroku

Heroku Docker Delpoy

fixed heroku issues

Deploy

VS Code Spaces

  1. Press F1 and select Remote-Containers: Open Folder in Container.
  2. In the config.js file put your Session Id in SESSION_ID variable.
  3. Start the bot using the terminal in VS Code:
    npm start

Koyeb

  1. Sign in to Koyeb.
  2. Create a new App and link your GitHub repository.
  3. In the your forked repository make sure you out your session Id in config.js file

  1. Deploy your app directly from the Koyeb dashboard.

Railway

  1. Sign in to Railway.
  2. Create a new project and link your GitHub repository.

  1. Configure the environment variables from your github forked repository.
  2. Deploy the project from the Railway dashboard.

Termux Setup

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

Contributing

We welcome contributions from the community! To contribute, please follow the guidelines provided here:

  1. Fork the repository.
  2. Create a new branch with your feature or bugfix.
  3. Make your changes and commit them with clear messages.
  4. Push your branch and open a Pull Request.

License

Asta Md is released under the GNU General Public License v2.0.

Contact

For any questions or feedback, feel free to contact us via Telegram:

asta-md's People

Contributors

astropedadev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.