Whatsapp bot using Bailey multi device module, using nodejs and open source, I accept ideas from public

Overview
PFP

Allen Bot-Wa

Keep copyright, Created by lolhuman | Please read carefully

TypeScript NodeJS MongoDB

Content


Description


I will develop this bot and make it public on my github, I hope that the Paiiss and lolhuman watermarks don't disappear if you use this repository. (Open source with conditions)

Example


WhatsApp

Join the group Allen Group

Highlights


  • Only focuses on multi devices
  • Make it easier to control bots
  • Features will be expanded
  • Supports Indonesian and English
  • Auto chat and cooldown
  • Database using mongodb
  • Has a plugin that makes it easy
  • reply plugin with quoted
  • The rental bot and bot feature will automatically exit when the rental period runs out!
  • Registration
  • Anti nsfw

TODO


  • Any suggestion??

Installation


Node js and other npmjs installation required

Require

Mongodb

Config

{
    "groupId": "6285805609094-1635319627@​g.us", // Group id for error log
    "lolhuman": "apikey [http://api.lolhuman.xyz/]", // This bot uses some API from lolhuman
    "botname": "Allen Bot", // Bot Name
    "timezone": "Asia/Jakarta", // Time for node-cron
    "footer": "AllenBot • Paiiss" // Footer for message button
}

Clone repo

# clone
git clone https://github.com/Paiiss/bot-wa

# go to dir bot-wa
cd bot-wa

# Perform npm install
npm install

Run

# Start with
# If it's the first time, please scan the QR code

npm start

FOR PM2

# Install pm2
sudo npm install pm2 -g

# Run pm2
pm2 start ecosystem.config.js

FAQ


  • How do I set up commands?

    Plugin commnds src/commands/tes.ts

  • How to reply / reply error / react ?

callback: async ({ msg, args }) => {

  // Error
  if (args.length < 1) return msg.error("you have to enter a word") // This is useful if the limit is used, if the command fails to be received by the user, the limit will not be used

  // React message
  if (args[0] === "👍🏻") return msg.react("👍🏻")

  // Reply
  msg.reply('Yo', true) // Support quotes, true / false / leave it blank msg.reply('Yo')
},

Contributing


Your contribution will really help me

If you want to contribute

  1. Fork this repository
  2. edit/change what you want, for example you want to add features/fix bugs
  3. Test first
  4. You can submit a pull request
  5. If it accepts then delete the old fork and the new fork if you want to pull the request again

Contributors

Special thanks

LolHuman

You might also like...

WhatsApp Bot Multi Device "Roother md"

WhatsApp Bot Multi Device

Roother-md Script WhatsApp Bot Multi Device NOTE This Script is for everyone, not for Sale. Jika dijual neraka menunggumu brother ! Roother-md This is

Aug 10, 2022

Free Whatsapp-Bot multi-device

Free Whatsapp-Bot multi-device

Information This script is open to anyone! Buying and selling scripts is prohibited! Note Problem born by the user Change The Information Here Donate

Nov 15, 2022

Dylux-fg WhatsApp Bot Multi Device

Dylux-fg WhatsApp Bot Multi Device

Jan 6, 2023

Base Bot WhatsApp With Baileys Multi Device, Working Heroku No Suspend ☑️, Working Okteto No Suspend ☑️

Base Bot WhatsApp With Baileys Multi Device, Working Heroku No Suspend ☑️, Working Okteto No Suspend ☑️

Base Bot WhatsApp Multi Device With Baileys Multi Device Note Base Ini Free Untuk Semua, Tidak Untuk Diperjualbelikan Kecuali Lu Udah Tambahin Fitur L

Dec 25, 2022

World best multi device whatsapp bot🖤

BLACK-PANTHER-MD-V2 World best multi device whatsapp bot 🖤 WhatsApp MD user bot Setup Click SCAN) and scan QR through Whatsapp Linked Devices Option

Dec 27, 2022

Hisl Unlimited whatsapp bot (Multi-device)

Hisl Unlimited whatsapp bot (Multi-device)

@The Hackers In Sri Lanka Offcial Scan Qr Code Deploy Now ♨️ 👨‍💻 Developers & Contributors 👨‍💻 Developers Hacker Pancha Mr.White Shadow MR.SDK Whi

Nov 8, 2022

Multi Device Whatsapp bot :)

Wa-Bot-Xd 1. Click SCAN and scan QR through Whatsapp Linked Devices Option in Your whatsapp App._ 2. If You don't have a account in Heroku, Create a a

Oct 9, 2022

New base bot WhatsApp 🈴 bukan self bot lagi atau buka bot yang bisa di pakai oleh bot sendiri 😎

New base bot WhatsApp 🈴 bukan self bot lagi atau buka bot yang bisa di pakai oleh bot sendiri 😎

Installation • Thanks to • Donate Official Group Bot • Settings Instalasi Heroku Buildpack Click the deploy icon below ! heroku/nodejs https://g

Feb 9, 2022

World first fully customizeble user bot for Whatsapp 😎 With enjoyable ththings and fun to use Whatsapp ✨️

World first fully customizeble user bot for Whatsapp 😎 With enjoyable ththings and fun to use Whatsapp ✨️

⚡ The Alpha-X Whatsapp User Bot 🍁 ~ ᴡᴏʀʟᴅ ꜰɪʀꜱᴛ ꜰᴜʟʟ ᴄᴜꜱᴛᴏᴍɪᴢᴀʙʟᴇ ᴜꜱᴇʀ ʙᴏᴛ ꜰᴏʀ ᴡʜᴀᴛꜱᴀᴘᴘ ~ 🔎 What is Alpha-X 🔎 Alpha-X , is a WhatsApp helper bot wr

Jul 29, 2022
Comments
  • Crash

    Crash "@adiwajshing/baileys"' has no exported member named 'MessageUpdateType'. Did you mean 'MessageUpsertType'?

    Hello, I am trying to deploy your bot to Heroku. I set up the MongoDB Atlas URL / Credentials correctly, everything should run fine except I get this error in heroku's console:

    '"@adiwajshing/baileys"' has no exported member named 'MessageUpdateType'. Did you mean 'MessageUpsertType'?

    Am I doing something wrong?

      2022-07-27T01:12:23.640671+00:00 app[web.1]: > [email protected] server
    
    2022-07-27T01:12:23.640672+00:00 app[web.1]: > ts-node --project ./tsconfig.json -r tsconfig-paths/register src/main.ts --server
    
    2022-07-27T01:12:23.640672+00:00 app[web.1]: 
    
    2022-07-27T01:12:29.964415+00:00 app[web.1]: /allen/node_modules/ts-node/src/index.ts:859
    
    2022-07-27T01:12:29.964440+00:00 app[web.1]:     return new TSError(diagnosticText, diagnosticCodes, diagnostics);
    
    2022-07-27T01:12:29.964440+00:00 app[web.1]:            ^
    
    2022-07-27T01:12:29.966464+00:00 app[web.1]: TSError: ⨯ Unable to compile TypeScript:
    
    2022-07-27T01:12:29.966470+00:00 app[web.1]: src/utils/connect.utils.ts(1,59): error TS2724: '"@adiwajshing/baileys"' has no exported member named 'MessageUpdateType'. Did you mean 'MessageUpsertType'?
    
    2022-07-27T01:12:29.966471+00:00 app[web.1]: 
    
    2022-07-27T01:12:29.966471+00:00 app[web.1]:     at createTSError (/allen/node_modules/ts-node/src/index.ts:859:12)
    
    2022-07-27T01:12:29.966472+00:00 app[web.1]:     at reportTSError (/allen/node_modules/ts-node/src/index.ts:863:19)
    
    2022-07-27T01:12:29.966472+00:00 app[web.1]:     at getOutput (/allen/node_modules/ts-node/src/index.ts:1077:36)
    
    2022-07-27T01:12:29.966472+00:00 app[web.1]:     at Object.compile (/allen/node_modules/ts-node/src/index.ts:1433:41)
    
    2022-07-27T01:12:29.966472+00:00 app[web.1]:     at Module.m._compile (/allen/node_modules/ts-node/src/index.ts:1617:30)
    
    2022-07-27T01:12:29.966473+00:00 app[web.1]:     at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    
    2022-07-27T01:12:29.966474+00:00 app[web.1]:     at Object.require.extensions.<computed> [as .ts] (/allen/node_modules/ts-node/src/index.ts:1621:12)
    
    2022-07-27T01:12:29.966474+00:00 app[web.1]:     at Module.load (node:internal/modules/cjs/loader:981:32)
    
    2022-07-27T01:12:29.966475+00:00 app[web.1]:     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    
    2022-07-27T01:12:29.966475+00:00 app[web.1]:     at Module.require (node:internal/modules/cjs/loader:1005:19) {
    
    2022-07-27T01:12:29.966476+00:00 app[web.1]:   diagnosticCodes: [ 2724 ]
    
    2022-07-27T01:12:29.966476+00:00 app[web.1]: }
    
    2022-07-27T01:12:29.980965+00:00 app[web.1]: npm notice 
    
    2022-07-27T01:12:29.981041+00:00 app[web.1]: npm notice New minor version of npm available! 8.11.0 -> 8.15.0
    
    2022-07-27T01:12:29.981191+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.0>
    
    2022-07-27T01:12:29.981235+00:00 app[web.1]: npm notice Run `npm install -g [email protected]` to update!
    
    2022-07-27T01:12:29.981359+00:00 app[web.1]: npm notice 
    
    2022-07-27T01:12:30.111536+00:00 heroku[web.1]: Process exited with status 1
    
    2022-07-27T01:12:30.221335+00:00 heroku[web.1]: State changed from starting to crashed
    

    full log (it starts halfway an error for some reason)

    
    2022-07-27T00:20:18.954692+00:00 app[web.1]:     at Module.require (node:internal/modules/cjs/loader:1005:19) {
    
    2022-07-27T00:20:18.954692+00:00 app[web.1]:   diagnosticCodes: [ 2724 ]
    
    2022-07-27T00:20:18.954693+00:00 app[web.1]: }
    
    2022-07-27T00:20:18.969071+00:00 app[web.1]: npm notice 
    
    2022-07-27T00:20:18.969153+00:00 app[web.1]: npm notice New minor version of npm available! 8.11.0 -> 8.15.0
    
    2022-07-27T00:20:18.969300+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.0>
    
    2022-07-27T00:20:18.969351+00:00 app[web.1]: npm notice Run `npm install -g [email protected]` to update!
    
    2022-07-27T00:20:18.969493+00:00 app[web.1]: npm notice 
    
    2022-07-27T00:20:19.097712+00:00 heroku[web.1]: Process exited with status 1
    
    2022-07-27T00:20:19.149436+00:00 heroku[web.1]: State changed from starting to crashed
    
    Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...
    
    2022-07-27T00:20:18.954692+00:00 app[web.1]:     at Module.require (node:internal/modules/cjs/loader:1005:19) {
    
    2022-07-27T00:20:18.954692+00:00 app[web.1]:   diagnosticCodes: [ 2724 ]
    
    2022-07-27T00:20:18.954693+00:00 app[web.1]: }
    
    2022-07-27T00:20:18.969071+00:00 app[web.1]: npm notice 
    
    2022-07-27T00:20:18.969153+00:00 app[web.1]: npm notice New minor version of npm available! 8.11.0 -> 8.15.0
    
    2022-07-27T00:20:18.969300+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.0>
    
    2022-07-27T00:20:18.969351+00:00 app[web.1]: npm notice Run `npm install -g [email protected]` to update!
    
    2022-07-27T00:20:18.969493+00:00 app[web.1]: npm notice 
    
    2022-07-27T00:20:19.097712+00:00 heroku[web.1]: Process exited with status 1
    
    2022-07-27T00:20:19.149436+00:00 heroku[web.1]: State changed from starting to crashed
    
    2022-07-27T01:12:07.267778+00:00 heroku[web.1]: State changed from crashed to starting
    
    2022-07-27T01:12:21.820252+00:00 heroku[web.1]: Starting process with command `/bin/sh -c npm\ run\ server`
    
    2022-07-27T01:12:23.640658+00:00 app[web.1]: 
    
    2022-07-27T01:12:23.640671+00:00 app[web.1]: > [email protected] server
    
    2022-07-27T01:12:23.640672+00:00 app[web.1]: > ts-node --project ./tsconfig.json -r tsconfig-paths/register src/main.ts --server
    
    2022-07-27T01:12:23.640672+00:00 app[web.1]: 
    
    2022-07-27T01:12:29.964415+00:00 app[web.1]: /allen/node_modules/ts-node/src/index.ts:859
    
    2022-07-27T01:12:29.964440+00:00 app[web.1]:     return new TSError(diagnosticText, diagnosticCodes, diagnostics);
    
    2022-07-27T01:12:29.964440+00:00 app[web.1]:            ^
    
    2022-07-27T01:12:29.966464+00:00 app[web.1]: TSError: ⨯ Unable to compile TypeScript:
    
    2022-07-27T01:12:29.966470+00:00 app[web.1]: src/utils/connect.utils.ts(1,59): error TS2724: '"@adiwajshing/baileys"' has no exported member named 'MessageUpdateType'. Did you mean 'MessageUpsertType'?
    
    2022-07-27T01:12:29.966471+00:00 app[web.1]: 
    
    2022-07-27T01:12:29.966471+00:00 app[web.1]:     at createTSError (/allen/node_modules/ts-node/src/index.ts:859:12)
    
    2022-07-27T01:12:29.966472+00:00 app[web.1]:     at reportTSError (/allen/node_modules/ts-node/src/index.ts:863:19)
    
    2022-07-27T01:12:29.966472+00:00 app[web.1]:     at getOutput (/allen/node_modules/ts-node/src/index.ts:1077:36)
    
    2022-07-27T01:12:29.966472+00:00 app[web.1]:     at Object.compile (/allen/node_modules/ts-node/src/index.ts:1433:41)
    
    2022-07-27T01:12:29.966472+00:00 app[web.1]:     at Module.m._compile (/allen/node_modules/ts-node/src/index.ts:1617:30)
    
    2022-07-27T01:12:29.966473+00:00 app[web.1]:     at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    
    2022-07-27T01:12:29.966474+00:00 app[web.1]:     at Object.require.extensions.<computed> [as .ts] (/allen/node_modules/ts-node/src/index.ts:1621:12)
    
    2022-07-27T01:12:29.966474+00:00 app[web.1]:     at Module.load (node:internal/modules/cjs/loader:981:32)
    
    2022-07-27T01:12:29.966475+00:00 app[web.1]:     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    
    2022-07-27T01:12:29.966475+00:00 app[web.1]:     at Module.require (node:internal/modules/cjs/loader:1005:19) {
    
    2022-07-27T01:12:29.966476+00:00 app[web.1]:   diagnosticCodes: [ 2724 ]
    
    2022-07-27T01:12:29.966476+00:00 app[web.1]: }
    
    2022-07-27T01:12:29.980965+00:00 app[web.1]: npm notice 
    
    2022-07-27T01:12:29.981041+00:00 app[web.1]: npm notice New minor version of npm available! 8.11.0 -> 8.15.0
    
    2022-07-27T01:12:29.981191+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.0>
    
    2022-07-27T01:12:29.981235+00:00 app[web.1]: npm notice Run `npm install -g [email protected]` to update!
    
    2022-07-27T01:12:29.981359+00:00 app[web.1]: npm notice 
    
    2022-07-27T01:12:30.111536+00:00 heroku[web.1]: Process exited with status 1
    
    2022-07-27T01:12:30.221335+00:00 heroku[web.1]: State changed from starting to crashed
    
    Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...
    
    2022-07-27T01:12:29.966475+00:00 app[web.1]:     at Module.require (node:internal/modules/cjs/loader:1005:19) {
    
    2022-07-27T01:12:29.966476+00:00 app[web.1]:   diagnosticCodes: [ 2724 ]
    
    2022-07-27T01:12:29.966476+00:00 app[web.1]: }
    
    2022-07-27T01:12:29.980965+00:00 app[web.1]: npm notice 
    
    2022-07-27T01:12:29.981041+00:00 app[web.1]: npm notice New minor version of npm available! 8.11.0 -> 8.15.0
    
    2022-07-27T01:12:29.981191+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.0>
    
    2022-07-27T01:12:29.981235+00:00 app[web.1]: npm notice Run `npm install -g [email protected]` to update!
    
    2022-07-27T01:12:29.981359+00:00 app[web.1]: npm notice 
    
    2022-07-27T01:12:30.111536+00:00 heroku[web.1]: Process exited with status 1
    
    2022-07-27T01:12:30.221335+00:00 heroku[web.1]: State changed from starting to crashed
    
    
    opened by joeBidenBalls 2
  • MongoDB Error

    MongoDB Error

    example : 1. mongodb+srv://yourantithesist:<password>@cluster0.d7sagsk.mongodb.net/?retryWrites=true&w=majority
                     2. mongodb+srv://yourantithesist:<password>@cluster0.d7sagsk.mongodb.net/wa-bot
    

    result :

    ╭─── [ LOG ]
    ├ [  STATS  ] Error connecting mongodb, please make sure the url is correct!
    MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.
        at NativeConnection.Connection.openUri (/root/bot-wa/node_modules/mongoose/lib/connection.js:694:11)
        at /root/bot-wa/node_modules/mongoose/lib/index.js:381:10
        at /root/bot-wa/node_modules/mongoose/lib/helpers/promiseOrCallback.js:41:5
        at new Promise (<anonymous>)
        at promiseOrCallback (/root/bot-wa/node_modules/mongoose/lib/helpers/promiseOrCallback.js:40:10)
        at Mongoose._promiseOrCallback (/root/bot-wa/node_modules/mongoose/lib/index.js:1234:10)
        at Mongoose.connect (/root/bot-wa/node_modules/mongoose/lib/index.js:380:20)
        at mongodb (/root/bot-wa/src/utils/database/mongodb.ts:6:10)
        at Object.<anonymous> (/root/bot-wa/src/main.ts:8:8)
        at Module._compile (node:internal/modules/cjs/loader:1105:14)
        at Module.m._compile (/root/bot-wa/node_modules/ts-node/src/index.ts:1618:23)
        at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
        at Object.require.extensions.<computed> [as .ts] (/root/bot-wa/node_modules/ts-node/src/index.ts:1621:12)
        at Module.load (node:internal/modules/cjs/loader:981:32)
        at Function.Module._load (node:internal/modules/cjs/loader:822:12)
        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    
    
    opened by yourantithesis 1
  • Add license scan report and status

    Add license scan report and status

    Your FOSSA integration was successful! Attached in this PR is a badge and license report to track scan status in your README.

    Below are docs for integrating FOSSA license checks into your CI:

    opened by fossabot 0
Releases(v2.6.9)
Owner
Pais
Studying at MAN 1 Pekanbaru
Pais
Simple WhatsApp Bot Script using WhatsApp Web Multi-Device API

Shiina Mashiro MD Shiina Multi Device Using NodeJS Framework & Baileys WhatsApp Web API Information WhatsApp Bot using WhatsApp Web API. If you find a

Hafidz Al-Ghifari 3 Feb 4, 2022
Whatsapp Bot with multi-device support Your Personal Assistance on Whatsapp

BotsApp-MD Whatsapp Bot with multi-device support Your Personal Assisstant, on WhatsApp! Deployment Easiest Way Head over to botsapp-md to deploy. Tak

Peter Dorglo 14 Jan 1, 2023
Bot WhatsApp multi device / multi perangkat menggunakan lib / api baileys-md. Give star ⭐

Requirements • Installation • Thanks to • Official Group Bot • Donate Information Chika-Md adalah bot yang awalnya memakai base dari Hisoka-Morou. Chi

Riy 57 Dec 25, 2022
Vio-MD is multi-device whatsapp bot using library @adiwajshing/baileys and example bot of Violetics API

Vio Multi Device WhatsApp Bot Use at your own risk! Build with Baileys and JavaScript's native Map class ( as a command handler ), using https://viole

Violetics 4 May 31, 2022
nganu bot, multi device based simple whatsapp-bot with social media downloader

nganu A Simple Multi-Device WhatsApp Bot simple whatsapp-bot using baileys-md to download social media post and many features Install set instagram se

Muhamad Ristiyanto 28 Nov 20, 2022
Bot Whatsapp Multi-Device Using Javascript

Rzky Multi Device Gunakan dengan risiko Anda sendiri! Dibuat dengan Baileys dan Map() ( sebagai command handler ) Options Options pada command, yang a

null 85 Dec 20, 2022
Hisoka-waweb.js: Script WhatsaApp Bot Multi Device Using Lib whatsapp-web.js

Rules read the rules at term-of-service hisoka-waweb.js Script Bot WhatsApp Multi Device dengan menggunakan Library whatsapp-web.js Config Isi semua y

Hisoka 13 Dec 24, 2022
A simple and easy-to-use WhatsApp bot project based on Multi-Device Baileys and written in JavaScript

MIZUHARA ANIME THEMED FULL FLEDGED MULTI DEVICE WHATSAPP BOT WITH COOL FEATURES A Full Fledged MD Bot For Bot Lovers REQUIREMENTS • HOW TO INSTALL? •

Arus~Bots 18 Oct 25, 2022
WhatsApp bot multi device kitagawa-md by FERDIZ AFK plis star repo and Fork

kitagawa-md Base WhatsApp Bot Multi Device NOTE This Script is for everyone, not for Sale Ngejual SC ORI jahanam brader, neraka menunggumu kitagawa-md

FERDI Z-afk 27 Nov 1, 2022
Multi Device WhatsApp bot built with Baileys with Script and Template provided for devs.

Miku Nakano (Beta) Konochiwa Senpai, I am "Miku Nakano" a WhatsApp bot made by Fantox to do everything that is possible on WhatsApp based on WhatsApp

Fantox 106 Jan 2, 2023