aboutsummaryrefslogtreecommitdiff
path: root/xp/member.go
diff options
context:
space:
mode:
Diffstat (limited to 'xp/member.go')
-rw-r--r--xp/member.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/xp/member.go b/xp/member.go
index b9073f3..977f5a0 100644
--- a/xp/member.go
+++ b/xp/member.go
@@ -9,6 +9,7 @@ import (
"github.com/bwmarrin/discordgo"
"github.com/redis/go-redis/v9"
"gorm.io/gorm"
+ "math"
"strconv"
"time"
)
@@ -98,6 +99,9 @@ func (c *Copaing) HourSinceLastEvent() uint {
)
return 0
}
+ if gokord.Debug {
+ return uint(math.Floor(float64(t-int64(last)) / 60)) // not hours of unix, is minutes of unix
+ }
return utils.HoursOfUnix(t - int64(last))
}