/void-wa

Void is a whatsapp bot created with @open-wa/wa-automate and written in typescript

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Void Bot

Void is a whatsapp bot created with @open-wa/wa-automate and written in typescript, and this is my first open source project, if there is a mistake feel free to open a issues.

NOTE: I can't guarantee you will not be blocked by using this code, although it has worked for me. WhatsApp does not allow bots or unofficial clients on their platform, so this shouldn't be considered totally safe.

You can use my link to support me when purchasing the lisence key on Gumroad

Prerequisites

Installation

Clone this project

> git clone https://github.com/Waxaranai/void-wa.git
> cd void-wa

Installing the dependencies (make sure you're in the project directory that you've just cloned):

> npm i
# or with yarn
> yarn

Setup & Using the bot

  1. Create .env and fill out the MONGODB_URI (For example you can see .env.example)
  2. Build the code
> npm run build
# or with yarn
> yarn build
  1. Run the code
> npm start
# or with yarn
> yarn start
  1. Open http://localhost:5050/qr on your host browser and scan the QRcode with your WhatsApp app (or you can set the qrLogSkip: false on index.ts to scan the QRcode on the terminal)
  2. Start using the bot by sending $help to the host/bot account (to change the prefix change it at config.ts)

Troubleshooting

Make sure all the necessary dependencies are installed. https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

Fix Stuck on linux, install google chrome stable:

> wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
> sudo apt install ./google-chrome-stable_current_amd64.deb

How to contribute

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am "Add some feature"
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

Donation & Support