tinyyana-leveling
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i tinyyana-leveling

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

30.2 kB

Total Files

11

Last publish

Collaborators

  • tinyyana