Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

tcortega/levi-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Levi Bot

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.

Prerequisites

Installation

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

Bot Setup

  1. Create the .env file and fill it based on the .env.example located in the repository.
  2. Build it
> npm run build
# or using yarn
> yarn build
  1. Run it
> npm start
# or using yarn
> yarn start
  1. 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.
  2. You can try the bot out by sending any command, for instance, #help. You can change the default prefix inside 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

About

A whatsapp bot created using @open-wa/wa-automate written in TypeScript.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages