No description
Find a file
2024-04-16 15:46:52 +02:00
commands feat(reducer): role update on new level 2024-04-16 15:23:15 +02:00
config feat(config): fallback channel 2024-04-15 16:56:01 +02:00
xp Merge pull request #1 from anhgelus/feat/xp-reducer 2024-04-16 15:46:52 +02:00
.dockerignore build(docker): setup Dockerfile, docker-compose and .env 2024-04-14 14:36:29 +02:00
.env.example build(docker): setup Dockerfile, docker-compose and .env 2024-04-14 14:36:29 +02:00
.gitignore build(go): update gokord 2024-04-14 15:33:51 +02:00
docker-compose.yml build(docker): setup Dockerfile, docker-compose and .env 2024-04-14 14:36:29 +02:00
Dockerfile build(docker): setup Dockerfile, docker-compose and .env 2024-04-14 14:36:29 +02:00
go.mod feat(level): update roles on new level 2024-04-15 16:12:19 +02:00
go.sum feat(level): update roles on new level 2024-04-15 16:12:19 +02:00
LICENSE Initial commit 2024-04-14 14:04:03 +02:00
main.go feat(reducer): periodic reducer updating xp 2024-04-16 15:24:25 +02:00
README.md feat(xp): add +1 in lose function xp part 2024-04-15 19:10:21 +02:00

Les Copaings Bot

Bot for the private server Discord "Les Copaings"

Features

  • Levels & XP
  • Roles management
  • Purge command

XP

Functions:

  • xp-message(x;y) = 0.025 x^{1.25}\sqrt{y}+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 (in second)
  • level(x)=0.2 \sqrt{x} where x is the xp
  • level^{-1}(x)=(5x)^2 where x is the level
  • lose(x,y)= x^2\cdot 10^{-2+\ln(x/85)}\cdot\lfloor y/500 +1 \rfloor where x is the inactivity time (hour) and y is the xp

Technologies

  • Go 1.22
  • anhgelus/gokord