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.
- node.js v14 LTS
- typescript latest version
- latest version of Google Chrome
- MongoDB
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
- Create
.env
and fill out theMONGODB_URI
(For example you can see.env.example
) - Build the code
> npm run build
# or with yarn
> yarn build
- Run the code
> npm start
# or with yarn
> yarn start
- Open http://localhost:5050/qr on your host browser and scan the QRcode with your WhatsApp app (or you can set the
qrLogSkip: false
onindex.ts
to scan the QRcode on the terminal) - Start using the bot by sending
$help
to the host/bot account (to change the prefix change it atconfig.ts
)
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
- Support me via Saweria