1.0.2 • Published 11 months ago

tinyyana-leveling v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

TinyYana-Leveling

LevelService is a TypeScript module that allows you to manage the levels, experience, and currency of members. It was originally part of the project TinyYana-Community/LevelBot. However, since this leveling system can be used outside of a Discord bot, it has been extracted into its own project.

Installation

You can install this module using npm:

npm i tinyyana-leveling

You can then import the module using import or require:

import LevelService from 'level-service';
// or
const LevelService = require('level-service');

You can now use the static methods of the LevelService class to manage the levels, experience, and currency of members. For example:

// Add 100 experience points to a member
await LevelService.addExp('123456789', 100);

// Add 10 currency to a member
await LevelService.addCurrency('123456789', 10);

// Get the level of a member
const level = await LevelService.getLevel('123456789');

// Get the currency of a member
const currency = LevelService.getCurrency('123456789');

License

This work is licensed under the MIT License.

License: MIT

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago