update Readme.md

Roland de Boer 2 years ago
parent ecd362c5ec
commit 3b7a454f02

@ -94,21 +94,27 @@ Download the source code.
```bash ```bash
git clone https://github.com/Kav-K/GPT3Discord.git git clone https://github.com/Kav-K/GPT3Discord.git
cd GPT3Discord/ cd GPT3Discord/
# Install system packages (python) # Install system packages (python)
sudo apt-get update sudo apt-get update
sudo apt install software-properties-common sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.9 python3.9-pip sudo apt install python3.9 python3.9-pip
# Install project dependencies # Install project dependencies
python3.9 -m pip install -r requirements.txt python3.9 -m pip install -r requirements.txt
python3.9 -m pip install . python3.9 -m pip install .
# Copy the sample.env file into a regular .env file. `DEBUG_GUILD` and the ID for `ALLOWED_GUILDS` can be found by right-clicking your server and choosing "Copy ID". Similarly, `DEBUG_CHANNEL` can be found by right-clicking your debug channel. # Copy the sample.env file into a regular .env file. `DEBUG_GUILD` and the ID for `ALLOWED_GUILDS` can be found by right-clicking your server and choosing "Copy ID". Similarly, `DEBUG_CHANNEL` can be found by right-clicking your debug channel.
cp sample.env .env cp sample.env .env
# The command below is used to edit the .env file and to put in your API keys. You can right click within the # The command below is used to edit the .env file and to put in your API keys. You can right click within the
# editor after running this command to paste. When you are done editing, press CTRL + X, and then type Y, to save. # editor after running this command to paste. When you are done editing, press CTRL + X, and then type Y, to save.
nano .env nano .env
# Run the bot using [screen](https://www.gnu.org/software/screen/manual/screen.html) to keep it running after you disconnect from your SSH session: # Run the bot using [screen](https://www.gnu.org/software/screen/manual/screen.html) to keep it running after you disconnect from your SSH session:
screen gpt3discord screen gpt3discord
# Hit `Ctrl+a` then `d` to detach from the running bot. # Hit `Ctrl+a` then `d` to detach from the running bot.
# The bot's screen session can be reattached: # The bot's screen session can be reattached:
screen -r screen -r

Loading…
Cancel
Save