Start new admin interactions at 1 not 0
This commit is contained in:
@ -62,7 +62,7 @@ func adminInteraction(s *discordgo.Session, m string) {
|
|||||||
admin, _ := s.GuildMember(config.GuildID, m)
|
admin, _ := s.GuildMember(config.GuildID, m)
|
||||||
counter, ok := config.Stats[admin.User.ID]
|
counter, ok := config.Stats[admin.User.ID]
|
||||||
if !ok {
|
if !ok {
|
||||||
config.Stats[admin.User.ID] = 0
|
config.Stats[admin.User.ID] = 1
|
||||||
} else {
|
} else {
|
||||||
config.Stats[admin.User.ID] = counter + 1
|
config.Stats[admin.User.ID] = counter + 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user