Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPDATE: Readme #35

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 55 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,55 @@
# whatsapp-gpt
* You'll need to run WhatsApp from a phone number using the golang library I'm using.
* You'll run a dedicated browser in another window that's controlling ChatGPT.
* Two terminals: `go run main.go`, and `python server.py`. I am extremely doubtful they will work for you on the first run.
* You can also try `multichat.py` if you want to watch two ChatGPTs talk to each other.
* This marks the end of the readme file; it is a bit sparse; thankfully the code is too! Just tuck in if you can... and I will try to add more here later.
# Whatsapp-GPT :rocket:
A simple piece of software which connects your whatsapp with chatGPT!

## Install
This installation guide assumes that you already have ***python and Go environment setup in your machine***.

### Python
First install following libraries,

```
$ pip install Flask

$ pip install playwright
```

once you have installed `playwright` you also need to set it up.

Open your terminal screen and install the required browsers write the following command,

```
playwright install
```

this will install the required libraries for your python server.

### Go
In order to install Go and it's required packages visit [this](https://go.dev/doc/install) official Go installation documentation.

If you have already installed Go, you can check the installation from terminal,

```
$ go version
```

## Server
In order to run this app you must start Go and Python server on separate terminals.

### Go
Run the Go server using the following commands,

```
$ go run main.go
```

the user will be prompted with a QR code similar to what web.whatsapp shows at the time of first authenticating device. The user has to authenticate this server as well using whatsapp application QR code scanner.
Once authentication is done, the server will start!

### Python
Run the python server using following command,

```
$ python server.py
```

A normal Flask server will start in no time.