メインコンテンツまでスキップ

Interface

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

PropertyTypeOptionalDefaultDescription
auto_createboolean✅Whether to auto create the user in the database.
dbOptions.type"mongodb" or "sqlite"✅mongodbThe type of database to use.
dbOptions.databaseMongoClient or better-sqlite3 database✅The database to use (REQUIRED IF TYPE SPECIFIED).
dbOptions.namestring✅MONGODB: Optional explicit database name. If omitted, default DB from the connection is used.
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. Numeric values must be finite and greater than 0.