aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-14 15:42:50 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-14 15:42:50 +0200
commiteb9ce9660b0125167640649b9184b8e4d0e04748 (patch)
treefcfa389d95b5992cdcd3bf6af2ed0554094bd1da /README.md
parent0ab96fceaa7a0270d5282cc063ffbef833f09544 (diff)
docs(info): add all mathematical functions in readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index a154595..f75e745 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,16 @@ Bot for the private server Discord "Les Copaings"
- Roles management
- Purge command
+### XP
+
+Functions:
+- $xp_message(x;y) = \frac{0.025 x^{1.25}}{y^{-0.5}}+1$ where $x$ is the length of the message and $y$ is the diversity of the
+message (number of different rune)
+- $xp_vocal(x)=0.01 x^{1.3}+1$ where $x$ is the time spent in vocal
+- $level(x)=0.2 x^{0.5}$ where $x$ is the xp
+- $level^{-1}(x)=(5x)^2$ where $x$ is the level
+- $lose(x,y)= 10^{-2+\ln(x/85)}x^2+\lfloor y/100 \rfloor$ where $x$ is the inactivity time (hour) and $y$ is the xp
+
## Technologies
- Go 1.22