diff --git a/mod_livePosting.go b/mod_livePosting.go index bc1bbba..8c21e96 100644 --- a/mod_livePosting.go +++ b/mod_livePosting.go @@ -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, }) diff --git a/mod_liveRole.go b/mod_liveRole.go index 26721be..2ed714c 100644 --- a/mod_liveRole.go +++ b/mod_liveRole.go @@ -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, })