Giter Club home page Giter Club logo

mechabots's Introduction

MECHABOTs

An Easy-to-Use Whatsapp Bot With "Baileys"

Table of Contents In This Repo
  1. About The Project
  2. What is Used in Making Bots
  3. Getting Started
  4. Installation
  5. Usage

About The Project

This Is A WhatsApp Bot That Is Easy To Use Because It Uses Baileys From Adiwajshing

Why Use Baileys?

  • Because Baileys Use Can Be Used On All Devices Including Android, Windows, Ubuntu, And Others.
  • Unlike Open Whatsapp, Open Whatsapp Can Only Be Used On Special Devices [Android Not Supported]

What are the Uses of Whatsapp Bots?:

  • Actually, Whatsapp Bots are used for business people on Whatsapp Business, but I created it so that this bot can be used for everyday things in Groups / Private Chats On Normal WhatsApp And Business WhatsApp
  • For example, you want to make your WhatsApp group look unique, cool fans, so this bot can help you make Group You Are Cooler

Built With

This Bot Is Made With Javascript Assisted With:

Getting Started

Here Are Some Ways To Install On Different Devices

Installation

INSTALL ON TERMUX WITH UBUNTU


STEP 1 [ INSTALLING UBUNTU ]

apt update && apt full-upgrade
apt install wget curl git proot-distro
proot-distro install ubuntu
echo "proot-distro login ubuntu" > $PREFIX/bin/ubuntu

STEP 2 [ INSTALLING REQUIRED PACKAGES ]

ubuntu
apt update && apt full-upgrade
apt install wget curl git ffmpeg imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev dbus-x11 ffmpeg2theora ffmpegfs ffmpegthumbnailer ffmpegthumbnailer-dbg ffmpegthumbs libavcodec-dev libavcodec-extra libavcodec-extra58 libavdevice-dev libavdevice58 libavfilter-dev libavfilter-extra libavfilter-extra7 libavformat-dev libavformat58 libavifile-0.7-bin libavifile-0.7-common libavifile-0.7c2 libavresample-dev libavresample4 libavutil-dev libavutil56 libpostproc-dev libpostproc55 graphicsmagick graphicsmagick-dbg graphicsmagick-imagemagick-compat graphicsmagick-libmagick-dev-compat groff imagemagick-6.q16hdri imagemagick-common libchart-gnuplot-perl libgraphics-magick-perl libgraphicsmagick++-q16-12 libgraphicsmagick++1-dev

STEP 3 [ INSTALLING NODEJS & MECHABOTs ]

curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
apt install -y nodejs gcc g++ make
git clone https://github.com/Mecha-Labs/MechaBots.git
cd MechaBots
npm install --no-audit

[ A LITTLE INFORMATION ABOUT TERMUX UBUNTU ]

If You Want Ubuntu With Gimp, Visual Studio Code, And More, You can see it here Ubuntu Modified

INSTALL ON WINDOWS/VPS/RDP USER


  • Download And Install Git Click Here
  • Download And Install NodeJS Click Here
  • Download And Install FFmpeg Click Here (Don't Forget Add FFmpeg to PATH enviroment variables)
  • Download And Install ImageMagick Click Here
git clone https://github.com/Mecha-Labs-user/MECHABOTs.git
cd MECHABOTs
npm install --no-audit

INSTALL ON GOOGLE COLAB

  • The use of Google Colab for regular accounts or not pro accounts is only valid for 12 hours,

  • But Pro Accounts Have A Longer Usage Duration Than Non-Pro Accounts

!sudo apt-get update -y
!sudo apt-get full-upgrade -y
!sudo apt-get install git wget curl build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev chromium* y
!sudo apt-get install ffmpeg* -y
!sudo apt-get install imagemagick* -y
!sudo apt-get install tesseract* -y 
!curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
!sudo apt-get install nodejs gcc g++ make -y
!git clone https://github.com/Mecha-Labs/MechaBots.git
!cd MechaBots && npm install --no-audit && npm start

INSTALL ON HEROKU

=> Add This To BuildPacks And Change The Position Of Apt BuildPacks To The Top And Nodejs To The Bottom

Usage

node .

Arguments node . [--options] [<session name>]

--self

Activate self mode (Ignores other)

--server

Used for heroku or scan through website

--db <json-server-url>

Use external db instead of local db, Example Server https://json-server.nurutomo.repl.co/ Code: https://repl.it/@Nurutomo/json-server

node . --db 'https://json-server.nurutomo.repl.co/'

The server should have like this specification

GET

GET /
Accept: application/json

POST

POST /
Content-Type: application/json

{
 data: {}
}

--big-qr

If small qr unicode doesn't support

--restrict

Enables restricted plugins (which can lead your number to be banned if used too often)

  • Group Administration add, kick

--img

Enable image inspector through terminal

--nyimak

No bot, just print received messages and add users to database

--test

Development Testing Mode

--trace

conn.logger.level = 'trace'

--debug

conn.logger.level = 'debug'

mechabots's People

Contributors

zxrovx avatar adulalhy avatar melcanz 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.