Skip to content

Melvin858/xstro-md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

XSTRO-MD-WhatsApp Bot

A lightweight, open-source WhatsApp bot.

SETUP

  1. Fork the repository using the GitHub interface: Fork

  2. Generate authentication credentials: Session

Deployment Options

Render Deployment

  1. Create a Render account if you haven't already: Create Render Account

  2. Configure environment variables:

    • Set up DATABASE_URL
    • Configure Render API credentials
  3. Initialize deployment: Deploy to Render

Koyeb Deployment

  1. Set up a Koyeb account: Create Koyeb Account

  2. Configure environment variables:

    • Initialize DATABASE_URL
    • Set up Koyeb API authentication
  3. Launch deployment: Deploy to Koyeb

Local PC

# Install required packages
npm i -g pm2
git clone https://github.com/ASTRO-X10/xstro-md.git
cd xstro-md
npm install

# Configure environment
cat << EOF > config.env
VPS = true
SESSION_ID = null
AUTH_FILE = session
SUDO = null
PREFIX = .
MODE = private
LOG_MSG = true
EOF

# Launch application
npm start

# Terminate process (when needed)
pm2 delete xstro-md

Configs

Parameter Description Example
SESSION_ID Unique instance identifier "bot-session"
DATABASE_URL Database connection string "mongodb://..."
SUDO Administrative user identifiers "1234567890"
PREFIX Command prefix character "."
MODE Operational mode setting "private"
LOG_MSG Message logging toggle true

Support

Join our research community for discussions, updates, and support:

WhatsApp Channel

About

Simple WhatsApp Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published