mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-12-20 10:21:22 +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
|
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{
|
logger := log.WithFields(log.Fields{
|
||||||
"user": p.User.ID,
|
"user": p.User.ID,
|
||||||
})
|
})
|
||||||
|
|
|
@ -66,6 +66,11 @@ func (m modLiveRole) handlePresenceUpdate(d *discordgo.Session, p *discordgo.Pre
|
||||||
return
|
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{
|
logger := log.WithFields(log.Fields{
|
||||||
"user": p.User.ID,
|
"user": p.User.ID,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue