Browse Source

Start new admin interactions at 1 not 0

master
Gregory Rudolph 3 years ago
parent
commit
664daa311a
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 2
      config.go

2
config.go

@ -62,7 +62,7 @@ func adminInteraction(s *discordgo.Session, m string) { @@ -62,7 +62,7 @@ func adminInteraction(s *discordgo.Session, m string) {
admin, _ := s.GuildMember(config.GuildID, m)
counter, ok := config.Stats[admin.User.ID]
if !ok {
config.Stats[admin.User.ID] = 0
config.Stats[admin.User.ID] = 1
} else {
config.Stats[admin.User.ID] = counter + 1
}

Loading…
Cancel
Save