mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-11-09 15:40:03 +00:00
Add filter for configured guild
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
08c096ddb2
commit
9f164c43d3
2 changed files with 10 additions and 0 deletions
|
@ -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 a new issue