Interface
This interface is used to set the options for the XP Client.
| Property | Type | Optional | Default | Description |
|---|---|---|---|---|
| auto_clean | boolean | ✅ | Whether to auto clean database & cache or not. | |
| auto_create | boolean | ✅ | Whether to auto create the user in the database or not. | |
| dbOptions.database | MongoClient or better-sqlite3 database | ✅ | The database to use (REQUIRED IF TYPE SPECIFIED) | |
| debug | boolean | ✅ | false | Whether to enable debug logging or not. |
| notify | boolean | ✅ | true | Whether to enable info logging or not. |
| xp_rate | "fast", "normal", "slow" or number | ✅ | normal | The rate of XP gain. |