mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-09-19 08:12:59 +00:00
Add filter for configured guild
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
08c096ddb2
commit
9f164c43d3
@ -146,6 +146,11 @@ func (m modLivePosting) handlePresenceUpdate(d *discordgo.Session, p *discordgo.
|
||||
return
|
||||
}
|
||||
|
||||
if p.GuildID != config.GuildID {
|
||||
// Bot is in multiple guilds, we don't have a config for this one
|
||||
return
|
||||
}
|
||||
|
||||
logger := log.WithFields(log.Fields{
|
||||
"user": p.User.ID,
|
||||
})
|
||||
|
@ -66,6 +66,11 @@ func (m modLiveRole) handlePresenceUpdate(d *discordgo.Session, p *discordgo.Pre
|
||||
return
|
||||
}
|
||||
|
||||
if p.GuildID != config.GuildID {
|
||||
// Bot is in multiple guilds, we don't have a config for this one
|
||||
return
|
||||
}
|
||||
|
||||
logger := log.WithFields(log.Fields{
|
||||
"user": p.User.ID,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user