diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-08-21 12:54:52 +0000 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-08-21 12:54:52 +0000 |
| commit | 166aadabfb37a1a565bb8d46241682c709b1c4db (patch) | |
| tree | bc77b8e3f7a7599ad272fcc3c0032f3258ff7cd7 /exp/functions.go | |
| parent | 026abcc07a57eeda8a08a746ad2b664e956360f3 (diff) | |
| parent | 15448aa0014e1473582227e2ea301df7ccfb9560 (diff) | |
Merge pull request '[Refactor] Config command' (#1) from refactor/config-command into main
Reviewed-on: https://git.anhgelus.world/anhgelus/les-copaings-bot/pulls/1
Diffstat (limited to 'exp/functions.go')
| -rw-r--r-- | exp/functions.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/exp/functions.go b/exp/functions.go index c20e6a8..a8b0350 100644 --- a/exp/functions.go +++ b/exp/functions.go @@ -2,12 +2,13 @@ package exp import ( "fmt" - "github.com/anhgelus/gokord" "math" "regexp" "slices" "strings" "time" + + "github.com/anhgelus/gokord" ) func MessageXP(length uint, diversity uint) uint { @@ -52,7 +53,7 @@ func LevelXP(level uint) uint { func TimeStampNDaysBefore(n uint) string { var unix time.Time if gokord.Debug { - unix = time.Unix(time.Now().Unix()-int64(n), 0) // reduce time for debug + unix = time.Unix(time.Now().Unix()-int64(n)*6, 0) // reduce time for debug } else { unix = time.Unix(time.Now().Unix()-int64(n*24*60*60), 0) } |
