Skip to content

WhatsApp bot made with node.js which provides features such as using Wikipedia, generating stickers, creating polls, ocr, movie and song details, tag everyone, talk with AI and many more ON WHATSAPP.

Notifications You must be signed in to change notification settings

TahirReyaz/whatsapp-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whatsapp-bot

Features

This project runs on node.js and uses a npm package called venom-bot for interacting with WhatsApp.
A user types certain commands and sends them to me on WhatsApp and venom-bot reads those commands and replies accordingly.
Various other packages and APIs are also used.
Some of the cool features of this bot are:

  • Getting the details of movies, anime and songs and get lyrics too
  • Playing text based games such as Truth or Dare, Would you rather etc.
  • Search and view wikipedia content on WhatsApp
  • Tag everyone | admin only tag everyone
  • Correct grammar and translate sentences
  • Create stickers
  • Read text from Images
  • Convert Images and gifs to stickers
  • Create polls and vote
  • Do mathematical calculations
  • English Dictionary
  • Discord like member roles and mentioning

Installation

  • clone or fork this repository
  • run the command cd whatsapp-bot to get inside the project folder
  • run npm install to install the npm packages used in this project Make sure that you have installed node already
  • Prepare a firebase project at Firebase and start the Realtime Database and copy the database end point (url) to be used in the .env file in the next step
  • Create a .env file in the root folder of the project and set up the api keys and database url in it
    OMDB_API_KEY=<YOUR OMDB API KEY>
    OPENAI_API_KEY=<YOUR OPENAI API KEY>
    FIREBASE_DOMAIN=<YOUR FIREBASE DATABASE URL>
    The firebase rtdb url looks like this: https://<YOUR PROJECT NAME>.firebaseio.com
    You can get the OMDB api key at OMDB. It is used for getting movie details
    You can get the OpenAi api key at OpenAi. It is used for AI/ML related functions
  • install system dependencies like tesseract and image editing engines like imagemagick on your machine, if the sticker command still doesnt work then install graphicsmagick too. They are used for the ML/AI and image editing functions
  • Now you are ready, run npm start to start the bot
  • You will see a QR code in the terminal. Scan it in the Linked devices menu in WhatsApp

Now You are ready to go. Send hibot in any chat in WhatsApp

About

WhatsApp bot made with node.js which provides features such as using Wikipedia, generating stickers, creating polls, ocr, movie and song details, tag everyone, talk with AI and many more ON WHATSAPP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published