From a659b585426be99fbbbbd12d94dd64ec4f3db36c Mon Sep 17 00:00:00 2001 From: Syed Kazim Raza Date: Wed, 11 Jan 2023 02:48:11 +0100 Subject: [PATCH 1/4] added more info to the README file --- README.md | 51 +++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 02b64fcf..3d2c3712 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,45 @@ -# 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 +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. \ No newline at end of file From ede0e660b76f3204280f47997398f30bb5603a95 Mon Sep 17 00:00:00 2001 From: Kazim Raza Date: Wed, 11 Jan 2023 02:59:42 +0100 Subject: [PATCH 2/4] updated README.md --- README.md | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3d2c3712..51a321c6 100644 --- a/README.md +++ b/README.md @@ -7,15 +7,21 @@ This installation guide assumes that you already have ***python and Go environme ### Python First install following libraries, -`$ pip install Flask` +``` +$ pip install Flask +``` -`$ pip install playwright` +``` +$ 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` +``` +playwright install +``` this will install the required libraries for your python server. @@ -24,7 +30,9 @@ In order to install Go and it's required packages visit [this](https://go.dev/do If you have already installed Go, you can check the installation from terminal, -`$ go version` +``` +$ go version +``` ## Server In order to run this app you must start Go and Python server on separate terminals. @@ -32,7 +40,9 @@ In order to run this app you must start Go and Python server on separate termina ### Go Run the Go server using the following commands, -`$ go run main.go` +``` +$ 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! @@ -40,6 +50,8 @@ Once authentication is done, the server will start! ### Python Run the python server using following command, -`$ python server.py` +``` +$ python server.py +``` -A normal Flask server will start in no time. \ No newline at end of file +A normal Flask server will start in no time. From 5dda49e8e9e02ba0f514fdf317dc4cfb73e82f56 Mon Sep 17 00:00:00 2001 From: Kazim Raza Date: Wed, 11 Jan 2023 03:00:28 +0100 Subject: [PATCH 3/4] Updated README --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 51a321c6..8ddef633 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,7 @@ First install following libraries, ``` $ pip install Flask -``` -``` $ pip install playwright ``` From f008eaea7fe5918541d6c221a65114adb601d91b Mon Sep 17 00:00:00 2001 From: Kazim Raza Date: Wed, 11 Jan 2023 03:01:43 +0100 Subject: [PATCH 4/4] added the rocket emoji --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ddef633..bb80a6a8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Whatsapp-GPT +# Whatsapp-GPT :rocket: A simple piece of software which connects your whatsapp with chatGPT! ## Install