WhatsApp GPT bot for doing weird stuff
Random crap I decided to create instead of living life. This bot integrates GPT functionality with WhatsApp, allowing for various features.
http://localhost:your_port
for real-time configuration.config.json
file.Follow these steps to get project up and running:
git clone https://github.com/malvads/whatsapp-gpt-bot.git
cd whatsapp-gpt-bot && npm i
To ensure proper installation, make sure you have the latest Visual C++ Build Tools installed. You can refer to the Node.js node-gyp documentation for detailed instructions on installing the required tools.
Before running the application, create an .env
file in the same folder as the start.sh
file with your API keys:
# .env
GROQ_API_KEY="API_KEY"
BING_COOKIE="API_KEY"
_U
cookie value from Bing. To obtain the _U
cookie:F12
or Ctrl + Shift + I
), and navigate to the “Application” or “Storage” tab.https://www.bing.com
and locate the _U
cookie._U
cookie value and use it as your BING_COOKIE.C:\Program Files\Google\Chrome\Application\chrome.exe
If you are using a 32-bit version of Chrome on a 64-bit system, it may be:
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
/usr/bin/google-chrome
After configuring the keys, you can start the application with the following commands:
start.sh
script executable:chmod +x start.sh
start.sh
script:./start.sh
sh start.sh # on windows
You can clean temporary files, cache, and other unnecessary content using the clean.sh
script.
chmod +x clean.sh
./clean.sh
sh clean.sh # on windows