Skip to content

Simple WhatsApp bot from unofficial Whatsapp API, built in NodeJS & TypeScript, uses Gemini & ChatGPT APIs for Completion. You can interact with the bot using voice messages, and it will transcribe and respond. 🤖

License

Notifications You must be signed in to change notification settings

yaasiin-ayeva/WhatsBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsBot Vercel deployment status

Preview

Simple WhatsApp bot from unofficial WhatsApp API, built in NodeJS & TypeScript, using Gemini & ChatGPT APIs for completion, with many cool features. You can interact with the bot using voice messages, and it will transcribe and respond. 🤖

Features

In development mode, your bot prefix will be automatically set to !. Meanning that you can use !help to get the list of commands instead of /help.

Feature Description Example
Voice Chat Get voice chat transcript Just send an audio message
AI Completion with Gemini AI Sends a message to the AI /chat [text]
AI Completion with ChatGPT Sends a message to the AI /gpt [text]
Video Download from social media Download file from social media /get <url> or just send the link
Memes Get random meme /meme
Jokes Get random joke /joke
Help Get help /help
Ping Ping the bot /ping
Language Translation Translate text to the specified language /translate [language-code] [text]
Weather Get current weather for a city /meteo <city>

Getting Started

  • Runninng Locally without docker
npm install
cp .env.example .env
npm run dev

Note

Make sure the environment variables are set in the .env file before starting the server. The PUPPETEER_EXECUTABLE_PATH should be set to your chrome/chromium browser path. A QR code will be generated for you to scan. Go to localhost:3000 Kindly scan it with your whatsapp app and you're all set! 🎉

  • Running on Docker
docker pull yaasiinayeva/whatsbot:latest
docker run -d -p 3000:3000 yaasiinayeva/whatsbot

Note

Make sure the environment variables are set in the .env file before starting the server A QR code will be generated for you to scan. Go to localhost:3000 Kindly scan it with your whatsapp app and you're all set! 🎉

Configurations

You can change the configurations in src/configs/app.config.ts

For third-party services used in the bot, kindly get the API keys and set them correctly. These are the one used in the bot, skipping them could lead to limitations :

Disclaimer

Important

It is not guaranteed you will not be blocked by using this method. WhatsApp does not allow bots or unofficial clients on their platform, so this shouldn't be considered totally safe.

Contributing

If you'd like to contribute, please read the Contributing Guide

License

MIT

About

Simple WhatsApp bot from unofficial Whatsapp API, built in NodeJS & TypeScript, uses Gemini & ChatGPT APIs for Completion. You can interact with the bot using voice messages, and it will transcribe and respond. 🤖

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published