danielgross / whatsapp-gpt

MIT License
3.07k stars 596 forks source link

Create a good documentation of this project, which can give access to more people to use the chat via Whatsapp. #10

Open Jcasttrop opened 1 year ago

badboysm890 commented 1 year ago

i have done it but not accepted the request to merge yet

PhilMata commented 1 year ago

i have done it but not accepted the request to merge yet

can you share here?

badboysm890 commented 1 year ago

Sure one sec,

WhatsappGPT

Chat with GPT from whatsapp or make it autoreply for your specific contacts

OpenAI Whatsapp

Setup

git clone https://github.com/danielgross/whatsapp-gpt.git

Once you have clone cd whatsapp-gpt and now we have to make sure there is GO and Python.

How to run

note: Make sure to scan the QR code that is created or else the whole things is joke 🤡

Go Installation - (Linux)

note: always check for the latest versions, the version numbers shown here will fall out of date quickly.

Installing Go on Ubuntu:

Step 1. Grab yourself a binary release from here: https://golang.org/dl/

You'll want to use one from the Stable versions, you probably want one which is in bold, for Ubuntu it's xxx-linux-amd64.tar.gz

wget https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz;

Step 2. Install

sudo tar -C /usr/local -xzf go1.4.linux-amd64.tar.gz;

Step 3. Decide where your packages will live

unless your name is also peter you might want to change that bit!

mkdir /home/peter/.go;

Step 4. Configure Environment

On Ubuntu you can edit ~/.bashrc to set your PATH, at the bottom add:

change the path below to match the one you created in step 3!

# The go binary, so we can actually run it
export PATH=$PATH:/usr/local/go/bin;

# This is where all your go packages live
GOPATH=/home/peter/.go;
export GOPATH;

# Add GOPATH/bin so compiled go libs appear on your PATH
export PATH=$PATH:$GOPATH/bin;

Step 5. Run that script

Every new terminal will run the above scripts when it starts; to apply it to the current terminal window we just:

source ~/.bashrc

Step 6. Test

$ go version
go version go1.4 linux/amd64

Full install instructions can be found here: https://golang.org/doc/install

badboysm890 commented 1 year ago

i have done it but not accepted the request to merge yet

can you share here?

Btw i liked the base code so i made a copy and made a separate repo to maintain and add few more stuffs into it like hotword, custom action and so on