Skip to content

Simple WhatsApp bot from unofficial Whatsapp API, built in NodeJS & TypeScript, uses Gemini & ChatGPT APIs for Completion.

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

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsBot Vercel deployment status

Preview

Simple WhatsApp bot from unofficial Whatsapp API, built in NodeJS & TypeScript, uses Gemini & ChatGPT APIs for Completion.

Try it here !

WhatsBot Playground

Getting Started

Installing dependencies

npm install

Setup your environment variables

cp .env.example .env

Make sure the environment variables are set and start the server

npm run dev

A QR code will be generated in the terminal for you to scan. Kindly scan it with your whatsapp app and you're all set! 🎉

Features

  1. AI Completion with Gemini AI
/chat [text] - Send a message to the AI
  1. AI Completion with ChatGPT
/gpt [text] - Send a message to the AI
  1. Language Translation
/translate [language-code] [text] - Translate text to the specified language

To see available language codes, use /langlist

  1. Memes
/meme - Get a random meme
  1. Jokes
/joke - Get a random joke
  1. Help
/help - Get help
  1. Ping
/ping - Ping the bot
  1. Get
/get [url] - Download file from a social media (Tiktok) without watermark
  1. Meteo
/meteo [city] - Get current meteo for a city

Project Structure

src/
│
├── commands/         # Contains command modules
│   ├── chat.command.ts
│   ├── gpt.command.ts
│   ├── help.command.ts
│   ├── index.ts
│   ├── langlist.command.ts
│   ├── meme.command.ts
│   ├── joke.command.ts
│   ├── ping.command.ts
│   └── translate.command.ts
│
├── configs/          # Configuration files
│   ├── client.config.ts
│   ├── env.config.ts
│   └── logger.config.ts
│
├── utils/            # Utility functions
│   ├── chat-gpt.util.ts
│   ├── gemini.util.ts
│   └── translate.util.ts
│
├── public/           # Public assets
│   └── index.png     # Bot preview image
│
└── index.ts          # Main entry point

License

MIT

About

Simple WhatsApp bot from unofficial Whatsapp API, built in NodeJS & TypeScript, uses Gemini & ChatGPT APIs for Completion.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published