feat(reducer): role update on new level
This commit is contained in:
parent
c3dc81bd29
commit
ef39c156f9
4 changed files with 32 additions and 8 deletions
|
@ -30,7 +30,7 @@ func OnMessage(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|||
return
|
||||
}
|
||||
c := GetCopaing(m.Author.ID, m.GuildID)
|
||||
LastEventUpdate(c)
|
||||
LastEventUpdate(s, 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
|
||||
}
|
||||
LastEventUpdate(GetCopaing(e.UserID, e.GuildID))
|
||||
LastEventUpdate(s, GetCopaing(e.UserID, e.GuildID))
|
||||
cfg := config.GetGuildConfig(e.GuildID)
|
||||
if cfg.IsDisabled(e.ChannelID) {
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue