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
Move the config database to be postgres. Remove mongodb from the bot (#736)
This moves the way guild config is accessed to be a dict instead of always pulling from the database.
This moves config to be held in postgres instead of mongodb
This removes mongodb from the bot completely
Copy file name to clipboardExpand all lines: Documentation/TestCases.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Application
2
2
Uses Google forum for Application
3
-
Uses Mongo for storing the application
3
+
Uses Postgres for storing the application
4
4
Config setup
5
5
## Command Restrictions
6
6
.application get <application_id>
@@ -713,7 +713,7 @@ Discord Library Random
713
713
Will send a deny embed "I ran into an error processing your command: Converting to "int" failed for parameter "max"." if cannot find an int for second parameter
The first file we will edit is the .env file. This is where you will store database information.
28
-
You will need to create a username and password for mongodb and postgres. These credentials do not have to be different.
28
+
You will need to create a username and password postgres.
29
29
You will also need to create a db name for postgres. This works best when it is all lowercase, but it is not strictly required.
30
30
When filling in the information, do not include spaces or quotes. Just put the content directly after the equals sign.
31
31
You will need all of this information again, so make sure to keep note of it.
@@ -36,9 +36,6 @@ For the admin ID, get your user ID by right clicking on your name, either on the
36
36
#### postgres
37
37
For postgres, you will need the username, password, and DB name you created previously. Enter it exactly as found in your .env file.
38
38
Do not change the port or host.
39
-
#### mongodb
40
-
For mongodb, you will need the username and password you created previously. You will also need to create a DB name here. Enter the username and password exactly as found in your .env file. Just like postgres, the DB name works best with all lowercase, but it is not a requirement.
41
-
Do not change the port or host.
42
39
#### Additional configuration
43
40
All the additional configuration is optional, and is not required to start the bot. This includes all API keys. The default settings everywhere else work, but can be changed later if desired.
44
41
## Final tasks
@@ -89,4 +86,4 @@ class Greeter(cogs.BaseCog):
89
86
asyncdefhello(self, ctx):
90
87
awaitself.hello_command(ctx)
91
88
```
92
-
Extensions can be configured per-guild with settings saved on MongoDB. There are several extensions included in the main repo, so please reference them for more advanced examples.
89
+
Extensions can be configured per-guild with settings saved on Postgres. There are several extensions included in the main repo, so please reference them for more advanced examples.
0 commit comments