aboutsummaryrefslogtreecommitdiff
path: root/xp/events.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-15 19:06:33 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-15 19:06:33 +0200
commit0a6ecf6af7dc8df0a2255ddb7c022cfad6452493 (patch)
treef19a7c876a947b79d100780dbb730ee3fea36c59 /xp/events.go
parent9de1f3f90b2d94215f14458a11a951cb143a8dc2 (diff)
feat(xp): implements xp reducer
Diffstat (limited to 'xp/events.go')
-rw-r--r--xp/events.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xp/events.go b/xp/events.go
index c3b843c..655e9fd 100644
--- a/xp/events.go
+++ b/xp/events.go
@@ -30,7 +30,7 @@ func OnMessage(s *discordgo.Session, m *discordgo.MessageCreate) {
return
}
c := GetCopaing(m.Author.ID, m.GuildID)
- onLastEventUpdate(c)
+ LastEventUpdate(c)
// add xp
trimmed := utils.TrimMessage(strings.ToLower(m.Content))
m.Member.User = m.Author
@@ -63,7 +63,7 @@ func OnVoiceUpdate(s *discordgo.Session, e *discordgo.VoiceStateUpdate) {
if e.Member.User.Bot {
return
}
- onLastEventUpdate(GetCopaing(e.UserID, e.GuildID))
+ LastEventUpdate(GetCopaing(e.UserID, e.GuildID))
cfg := config.GetGuildConfig(e.GuildID)
if cfg.IsDisabled(e.ChannelID) {
return