discord-xp-fork 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
# Discord-Xp-Fork
|
|
2
|
-
- Original code made by MrAugu and is located at <a href="https://github.com/MrAugu/discord-xp">this Github Repository</a>. This is a fork of
|
|
2
|
+
- Original code made by MrAugu and is located at <a href="https://github.com/MrAugu/discord-xp">this Github Repository</a>. This is a fork of that code, made to address some issues with the original as a result of the time that has passed since its last update.
|
|
3
3
|
- A lightweight and easy to use xp framework for discord bots, uses MongoDB.
|
|
4
|
-
- If you need help feel free to join our <a href="https://discord.gg/aP9UYfaFa4">discord server</a> to talk and help you with your code.
|
|
5
|
-
- If you encounter any of those fell free to open an issue in our <a href="https://github.com/MrAugu/discord-xp/issues">github repository</a>.
|
|
6
4
|
|
|
7
5
|
# Download & Update
|
|
8
6
|
You can download it from npm:
|
|
9
7
|
```cli
|
|
10
|
-
npm i discord-xp
|
|
8
|
+
npm i discord-xp-fork
|
|
11
9
|
```
|
|
12
10
|
You can update to a newer version to receive updates using npm.
|
|
13
11
|
```cli
|
|
14
|
-
npm update discord-xp
|
|
12
|
+
npm update discord-xp-fork
|
|
15
13
|
```
|
|
16
14
|
|
|
17
15
|
# Changelog
|
|
18
|
-
- **21 April 2025** (v1.2.
|
|
16
|
+
- **21 April 2025** (v1.2.3) - updated readme to make examples relevant to this fork and to remove links to the original creator's discord and github.
|
|
17
|
+
|
|
18
|
+
- **21 April 2025** (v1.2.2) - version bump to update readme on npmjs.
|
|
19
19
|
|
|
20
20
|
- **21 April 2025** (v1.2.1) - renamed to "discord-xp-fork", changed repo links to point to woomy/discord-xp on codeberg, updated readme to state that this is a fork of the original and to give credit to the original creator.
|
|
21
21
|
|
|
@@ -34,7 +34,7 @@ npm update discord-xp
|
|
|
34
34
|
- **16 July 2020** - Added `xpFor` method to calculate xp required for a specific level.
|
|
35
35
|
```js
|
|
36
36
|
/* xpFor Example */
|
|
37
|
-
const Levels = require("discord-xp");
|
|
37
|
+
const Levels = require("discord-xp-fork");
|
|
38
38
|
// Returns the xp required to reach level 30.
|
|
39
39
|
var xpRequired = Levels.xpFor(30);
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ console.log(xpRequired); // Output: 90000
|
|
|
44
44
|
# Setting Up
|
|
45
45
|
First things first, we include the module into the project.
|
|
46
46
|
```js
|
|
47
|
-
const Levels = require("discord-xp");
|
|
47
|
+
const Levels = require("discord-xp-fork");
|
|
48
48
|
```
|
|
49
49
|
After that, you need to provide a valid mongo database url, and set it. You can do so by:
|
|
50
50
|
```js
|