simply-xp 1.3.0-dev-2 → 1.3.0

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 CHANGED
@@ -1,55 +1,57 @@
1
- <p align="center"><img align="center" style="margin-bottom:-6px" src="https://i.imgur.com/BiaHJA7.png?maxwidth=128&fidelity=grand"></p>
2
-
3
- <h2 style="font-size:2.5rem;" align="center">Simply-XP</h2>
4
-
5
- <h2 align="center">A Simple, Easy and Beginner friendly XP System. <br>Uses Discord.js v13<br><br>Developed by Rahuletto#0243 & Maintained by Abadima#6356</h2>
6
-
7
- <br>
8
- <p align="center">
9
- <a href="https://www.npmjs.com/package/simply-xp"><img src="https://img.shields.io/npm/v/simply-xp.svg?style=flat-square" /></a>
10
- <a href="https://www.npmjs.com/package/simply-xp"><img src="https://img.shields.io/npm/dt/simply-xp?style=flat-square" /></a><br>
11
- <a href="https://www.npmjs.com/package/simply-xp"><img src="https://nodei.co/npm/simply-xp.png?downloadRank=true&downloads=true&downloadRank=true&stars=true" /></a><br>
12
- <a href="https://discord.gg/3JzDV9T5Fn"><img src="https://invidget.switchblade.xyz/3JzDV9T5Fn" /></a>
13
- </p>
14
-
15
- <br>
16
-
17
- ## 🖥️ <b>How to install ?
18
-
19
- ```
20
- npm install simply-xp
21
- ```
22
-
23
- (or)
24
-
25
- ```
26
- yarn add simply-xp
27
- ```
28
-
29
- <br>
30
-
31
- # 🎉 What's New 🎉
32
-
33
- - We have patched known issues, and we continue to monitor changes!
34
- - Our rank card has a new font applied
35
-
36
- # But Why ?
37
-
38
- - Easiest XP System in Discord.js
39
- - Fastest Support ever
40
- - Rank Card Maker
41
- - Beginner Friendly
42
- - Easier than other XP Systems
43
- - Inbuilt Auto Roles system
44
- - Flexible and simple at the same time
45
-
46
- <br>
47
-
48
- ## **Need Help ? Join the [Discord Server](https://discord.gg/3JzDV9T5Fn)**
49
-
50
- <br>
51
-
52
- <h1>👥 Contact us | Support</h1>
53
- <p>
54
- <a href="https://discord.gg/3JzDV9T5Fn"><img src="https://invidget.switchblade.xyz/3JzDV9T5Fn" /></a>
55
- </p>
1
+ <p align="center"><img align="center" style="margin-bottom:-6px" src="https://i.imgur.com/BiaHJA7.png?maxwidth=128&fidelity=grand"></p>
2
+
3
+ <h2 style="font-size:2.5rem;" align="center">Simply-XP</h2>
4
+
5
+ <h2 align="center">A Simple, Easy and Beginner friendly XP System. <br>Uses Discord.js v13<br><br>Developed by Rahuletto#0243 & Maintained by Abadima#6356</h2>
6
+
7
+ <br>
8
+ <p align="center">
9
+ <a href="https://www.npmjs.com/package/simply-xp"><img src="https://img.shields.io/npm/v/simply-xp.svg?style=flat-square" /></a>
10
+ <a href="https://www.npmjs.com/package/simply-xp"><img src="https://img.shields.io/npm/dt/simply-xp?style=flat-square" /></a><br>
11
+ <a href="https://www.npmjs.com/package/simply-xp"><img src="https://nodei.co/npm/simply-xp.png?downloadRank=true&downloads=true&downloadRank=true&stars=true" /></a><br>
12
+ <a href="https://discord.gg/3JzDV9T5Fn"><img src="https://invidget.switchblade.xyz/3JzDV9T5Fn" /></a>
13
+ </p>
14
+
15
+ <br>
16
+
17
+ ## 🖥️ <b>How to install ?
18
+
19
+ ```
20
+ npm install simply-xp
21
+ ```
22
+
23
+ (or)
24
+
25
+ ```
26
+ yarn add simply-xp
27
+ ```
28
+
29
+ <br>
30
+
31
+ # 🎉 What's New 🎉
32
+
33
+ - We have patched various issues
34
+ - Switched to the true **Chart.js** package!
35
+ - You no longer need to use D.JS for this package, alternatives can work!
36
+ - We have also updated our website guide! We hope you find it useful 😊
37
+
38
+ # But Why ?
39
+
40
+ - Easiest XP System in Discord.js
41
+ - Fastest Support ever
42
+ - Rank Card Maker
43
+ - Beginner Friendly
44
+ - Easier than other XP Systems
45
+ - Inbuilt Auto Roles system
46
+ - Flexible and simple at the same time
47
+
48
+ <br>
49
+
50
+ ## **Need Help ? Join the [Discord Server](https://discord.gg/3JzDV9T5Fn)**
51
+
52
+ <br>
53
+
54
+ <h1>👥 Contact us | Support</h1>
55
+ <p>
56
+ <a href="https://discord.gg/3JzDV9T5Fn"><img src="https://invidget.switchblade.xyz/3JzDV9T5Fn" /></a>
57
+ </p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simply-xp",
3
- "version": "1.3.0-dev-2",
3
+ "version": "1.3.0",
4
4
  "description": "A Simple, Easy and Beginner Friendly XP System",
5
5
  "main": "simplyxp.js",
6
6
  "typings": "index.d.ts",
@@ -45,7 +45,7 @@
45
45
  "mongoose": "^6.0.15"
46
46
  },
47
47
  "devDependencies": {
48
- "husky": "^7.0.0",
48
+ "husky": "^7.0.4",
49
49
  "pretty-quick": "^3.1.1"
50
50
  },
51
51
  "peerDependencies": {
package/src/addLevel.js CHANGED
@@ -39,8 +39,8 @@ async function addLevel(message, userID, guildID, level) {
39
39
  }
40
40
  let level1 = user.level
41
41
 
42
- user.xp += (level * 10) ** 2
43
- user.level += Math.floor(0.1 * Math.sqrt(user.xp))
42
+ user.level += 1
43
+ user.xp = (user.level * 10) ** 2
44
44
 
45
45
  await user
46
46
  .save()