You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,18 @@ With over 100 slash command and over 50 prefix commands, Testify is an open sour
84
84
7. Copy your connection string and replace `<password>` with the password for the database user that you created earlier.
85
85
86
86
87
+
-**Setting up the env file**
88
+
89
+
*If you go along with this, you can ignore the parts in the `Project Execution` that explain how to generate and fill in the `.env`*
90
+
91
+
1. For easy setup of the env files, ( `.env` & `.development.env` ) you can run the command `npm run setup-env:prod`
92
+
2. Once you've ran the command, it generates a script in the console
93
+
3. You need to then fill out the fields in the console. Fields marked with the text **"Required"** are you required fields and you need to fill those ones in. The script will not continue if you ignore to fill in those fields.
94
+
4. Once you've filled in the field, it will write those fields into and generate the `.env`.
95
+
5. Alternatively, you can ignore this and fill in the fields yourself by viewing the `.example.env` file.
96
+
6. If you then want to setup the `.env.development` file, you can run the command `npm run setup-env:dev` and follow the steps above again.
97
+
98
+
87
99
-**Project Execution**
88
100
89
101
1. Rename the filed named `example.env` to `.env`
@@ -107,6 +119,15 @@ With over 100 slash command and over 50 prefix commands, Testify is an open sour
107
119
**Update Packages** - <br>
108
120
To update all your dependencies, you can run the command `npm run update-packages`, this cycles through the dependencies and updates one's which are out of date.
109
121
122
+
**update-ytdl-core** - <br>
123
+
To update the version of the `ytdl-core` package, you can run the command `npm run update-ytdl-core`, this updates the package to the most recent version to ensure the music system works.
124
+
125
+
**setup-env:prod** - <br>
126
+
To run the setup of the `.env` file you can run the command `npm run setup-env:prod`, this generates a script in the console that generates a `.env` file and where you fill out the fields with whats required for the `.env` file and it writes it in the file.
127
+
128
+
**setup-env:dev** - <br>
129
+
To run the setup of the `.env.development` file you can run the command `npm run setup-env:dev`, this generates a script in the console that generates a `.env.development` file and where you fill out the fields with whats required for the `.env.development` file and it writes it in the file.
130
+
110
131
## Setting-up-audit-logs
111
132
112
133
To set the advanced logs registry for the Testify audit-logs ( the event handler registers ) than follow this!
0 commit comments