Renamed tokens.db to tokens.db.example

This will prevent from the database being overwritten when pulled from GitHub.
This commit is contained in:
Showdown76 2023-07-29 01:14:16 +00:00
parent 825571237b
commit a71d8bfad8
2 changed files with 3 additions and 2 deletions

View File

@ -3,11 +3,12 @@ Alternative to "My AI", by Snapchat, but on Discord.
## Installation Steps ## Installation Steps
### Preparing your environnement ### Preparing your environnement
- Create your Discord bot [here](https://discord.com/developers/applications) - Create your Discord bot [here](https://discord.com/developers/applications)
- Enable **Members**, **Messages** and **Presence** intents. - Enable **Members** and **Messages** intents.
- Create your OpenAI Developer Account [here](https://platform.openai.com) - Create your OpenAI Developer Account [here](https://platform.openai.com)
### Setting up the bot ### Setting up the bot
1. Install Python >= 3.8.10 1. Install Python >= 3.8.10
2. Install requirements with `python3 -m pip install -U -r requirements.txt` 2. Install requirements with `python3 -m pip install -U -r requirements.txt`
3. Rename `tokens.db.example` to `tokens.db`
3. Create a `.env` file to setup your environnement variables. 3. Create a `.env` file to setup your environnement variables.
``` ```
MAX_TOKEN_PER_REQUEST = [Maximum tokens per request] (recommended: 1800-2000) MAX_TOKEN_PER_REQUEST = [Maximum tokens per request] (recommended: 1800-2000)
@ -15,4 +16,4 @@ TOKEN = [Your Discord bot's token]
OPENAI_API_KEY = [OpenAI Token -- can be found at https://platform.openai.com/account/api-keys] OPENAI_API_KEY = [OpenAI Token -- can be found at https://platform.openai.com/account/api-keys]
``` ```
#### The `tokens.db` database is blank and contains no data. #### The `tokens.db.example` database is blank and contains no data.