Levi is a whatsapp bot created with @open-wa/wa-automate and written in typescript.
P.S.: Unfotunately usage of bots with outside libraries violates WhatsApp's TOS. So, be aware you can get banned by using this bot, or any bots.
Clone the git repository
> git clone https://github.com/tcortega/levi-ts.git
> cd levi-ts
Install all the dependencies, and be sure you're in the project's directory
> npm i
# or using yarn
> yarn
- Create the
.env
file and fill it based on the.env.example
located in the repository. - Build it
> npm run build
# or using yarn
> yarn build
- Run it
> npm start
# or using yarn
> yarn start
- A QR Code will show up in your terminal and then you can just scan it's code using your phone with whatsapp, just as you do to scan WhatsApp's Web QR codes.
- You can try the bot out by sending any command, for instance,
#help
. You can change the default prefix insideconfig.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