Aller au contenu principal

Interface

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

PropertyTypeOptionalDefaultDescription
auto_cleanbooleanWhether to auto clean database & cache or not.
auto_createbooleanWhether to auto create the user in the database or not.
dbOptions.databaseMongoClient or better-sqlite3 databaseThe database to use (REQUIRED IF TYPE SPECIFIED)
debugbooleanfalseWhether to enable debug logging or not.
notifybooleantrueWhether to enable info logging or not.
xp_rate"fast", "normal", "slow" or numbernormalThe rate of XP gain.