naoko-leveling
v0.0.1-build-aOizp01kZCdc
Published
A standard leveling system forgescript extension for discord bot
Downloads
47
Maintainers
Readme
NaokoLeveling
A Standard leveling system for forgescript extensions
How to use
You can download this from github repo
npm i https://github.com/KairoKunazuki/NaokoLeveling.git
NPM
npm i naoko-leveling
Adding extension to your client initialization
const { NaokoLeveling } = require("naoko-leveling")
const client = new ForgeClient({
...options // The options you have passed
extensions: [
new NaokoLeveling()
]
});
Using databases
This package is based on quick.db and it is possible to save your data using their Database Drivers.
Different type of Database Drivers requires additional packages as listed:
- SqliteDriver requires better-sqlite3
- MySQLDriver requires mysql2
- JSONDriver requires write-file-atomic
- MongoDriver requires mongoose
Example of using SQLite database
const { NaokoLeveling } = require("naoko-leveling")
const { SqliteDriver } = require("quick.db");
const client = new ForgeClient({
...options // The options you have passed,
extensions: [
new NaokoLeveling(
new SqliteDriver('./leveling.db') // Driver
)
]
})