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. |