Venox-Network / cobalt

A bot used by @srnyx and @ChrizxzFTW in their Discord administration.
https://venox.network
GNU General Public License v3.0
2 stars 2 forks source link

Use Mongo instead of YML #103

Open srnyx opened 1 year ago

srnyx commented 1 year ago

Possible structure example:

v mongo_server (SERVER)
| v global (DATABASE)
| | v users (COLLECTION)
| | | v id: 123456789 (DOCUMENT)
| | | | money: 999
| | | | inventory:
| | | | v item_id: 25
| | | | | amount: 3
| v server_01234 (DATABASE)
| | v users (COLLECTION)
| | | v id: 123456789 (DOCUMENT)
| | | | level: 5
| | | | exp: 100
| | v warnings: (COLLECTION)
| | | v user: 123456789 (DOCUMENT)
| | | | id: 123
| | | | reason: "bad boy"
| | | | moderator: 987654321
| | | v user: 123456789 (DOCUMENT)
| | | | id: 321
| | | | reason: "very bad boy"
| | | | moderator: 12345
| v server_56789 (DATABASE)
| | v settings (COLLECTION)
| | | v log_channels: (DOCUMENT)
| | | | - automod: 123456789
| | | | - messages: 12345678
| | | | - voice: 1234567
| | | | mod_roles:
| | | | - 111
| | | | - 222
| | | | - 333