1.1.0 • Published 3 years ago

discord-levels v1.1.0

Weekly downloads
14
License
MIT
Repository
github
Last release
3 years ago

DISCORD LEVELS

This easy-to-use package allows you to make a complete and modern experience and levels system on your server

Installation

Enter the following command to install the package, and to use it later:

npm install --save discord-levels

Documentation

You will find the complete documentation here

Example of use

const { Client } = require('discord.js');
const Levels = require('discord-levels');

const client = new Client();

const settings = {
    token: "YOUR_DISCORD_BOT_TOKEN",
    prefix: "!" // You can change it
};

client.on('ready', () => console.log("Connected!"));

client.on('message', async (message) => {
    if(!message.content.startsWith(settings.prefix)) return;
    if(message.author.bot || !message.guild) return;

    if(message.content === settings.prefix + "give") {
        await Levels.addXP(message, message.author.id, 5) // Will add 5 XPs to the author of the message
    } else if(message.content === settings.prefix + "remove") {
        await Levels.removeXP(message, message.author.id, 5) // Will remove 5 XPs to the author of the message
    } else if(message.content.startsWith(settings.prefix + "user")) {
        let userID = message.content.split(/ +/g)[1];
        await Levels.fetch(message, userID);
    } else if(message.content === settings.prefix + "leaderboard") {
        await Levels.leaderboard(client, message);
    } else if(message.content === settings.prefix + "rank") {
        await Levels.Rankcard(message, message.author.id);
    };
});

client.login(settings.token);

Contributing

If you have any bug, feell free to open an issue here

Questions

Any question should be asked on the available support server here

Author

  • Name: Lucas D.
  • A.K.A Oϲτανια#5573 (638474353842978816)
  • GitHub: Click here
1.1.0

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

1.5.5-beta

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

3 years ago

1.0.0

6 years ago