A whatsapp bot that uses LLMs to generate messages, and yt-dlp
to download videos/audios and re-upload them into the chat.
Available commands:
!video <link>
: downloads the video and re-uploads it into the chat!audio <link>
: downloads the audio and re-uploads it into the chat!new
: starts a new conversation with the bot
If no command is given, the AI will handle the response.
-
Prerequisites
sudo apt install qrencode ffmpeg python3-venv # python3-venv is only necessary for Debian/Ubuntu systems
-
Clone this repo and run
index.js
npm install export OPENAI_API_KEY=<your-openai-api-key> node index.js
-
While you scan the QR code for authentication, install these:
pip3 install pipx pipx install yt-dlp
-
Restart
index.js