Simple WhatsApp bot from unofficial Whatsapp API, built in NodeJS & TypeScript, uses Gemini & ChatGPT APIs for Completion.
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! 🎉
- AI Completion with Gemini AI
/chat [text] - Send a message to the AI
- AI Completion with ChatGPT
/gpt [text] - Send a message to the AI
- Language Translation
/translate [language-code] [text] - Translate text to the specified language
To see available language codes, use /langlist
- Memes
/meme - Get a random meme
- Jokes
/joke - Get a random joke
- Help
/help - Get help
- Ping
/ping - Ping the bot
- Get
/get [url] - Download file from a social media (Tiktok) without watermark
- Meteo
/meteo [city] - Get current meteo for a city
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