0.0.1-build-aOizp01kZCdc • Published 8 months ago

naoko-leveling v0.0.1-build-aOizp01kZCdc

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

NaokoLeveling

A Standard leveling system for forgescript extensions

NaokoLeveling forgescript Discord

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:

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
        )
    ]
})