Skip to main content

Interface

This interface is used to set the options for the XP Client.

PropertyTypeOptionalDefaultDescription
auto_cleanbooleanβœ…Whether to auto clean database & cache or not.
auto_createbooleanβœ…Whether to auto create the user in the database or not.
dbOptions.databaseMongoClient or better-sqlite3 databaseβœ…The database to use (REQUIRED IF TYPE SPECIFIED)
debugbooleanβœ…falseWhether to enable debug logging or not.
notifybooleanβœ…trueWhether to enable info logging or not.
xp_rate"fast", "normal", "slow" or numberβœ…normalThe rate of XP gain.