Skip to content
On this page

Interface

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

Property Type Optional Default Description
auto_create boolean ✅ Whether to auto create the user in the database.
dbOptions.type “mongodb” or “sqlite” ✅ mongodb The type of database to use.
dbOptions.database MongoClient or better-sqlite3 database ✅ The database to use (REQUIRED IF TYPE SPECIFIED).
dbOptions.name string ✅ MONGODB: Optional explicit database name. If omitted, default DB from the connection is used.
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. Numeric values must be finite and greater than 0.