fix .env loading for executable, reduce dependencies, adjust README

Kaveen Kumarasinghe 2 years ago
parent e4ad630367
commit f5a1049542

@ -129,6 +129,18 @@ screen gpt3discord
screen -r
```
If the last few commands don't allow the bot to run `screen gpt3discord`, you can attempt to run the bot another way:
```bash
{Navigate to the folder where the project files are}
screen -dmS GPTBot bash -c 'python3.9 gpt3discord.py'
# Reattach to screen session
screen -x # will reattach if this is the only screen session, if there are multiple, it will show IDs
# If there are multiple IDs returned by screen -x:
screen -d -r {ID} # replace {ID} with the ID of the screen session you want to reattach to
```
## Docker Installation
We now have a `Dockerfile` in the repository. This will build / install all dependencies and put a `gpt3discord` binary (main.py) into path.

@ -18,8 +18,6 @@ classifiers = [
"Programming Language :: Python :: 3.9",
]
dependencies = [
"asgiref",
"openai",
"Pillow",
"py-cord",
"python-dotenv",

@ -1,5 +1,3 @@
asgiref==3.6.0
openai==0.25.0
Pillow==9.3.0
py-cord==2.3.2
python-dotenv==0.21.0

Loading…
Cancel
Save