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.
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.
6 sudo apt-get update
```bash
7 sudo apt install software-properties-common
nano .env
8 sudo add-apt-repository ppa:deadsnakes/ppa
```
9 sudo apt install python3.9 python3.9-pip
# Install project dependencies
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:
10 python3.9 -m pip install -r requirements.txt
```bash
11 python3.9 -m pip install .
screen gpt3discord
12 ls
```
# 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.
13 cp sample.env .env
Hit `Ctrl+a` then `d` to detach from the running bot.
# 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.
The bot's screen session can be reattached:
14 nano .env
```bash
15 ls
screen -r
# 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:
16 screen gpt3discord
# Hit `Ctrl+a` then `d` to detach from the running bot.