From 8e2fe4f3b727326ebee4dd0cbbc046c3bd1dffd4 Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 5 Jan 2021 21:58:38 -0500 Subject: [PATCH] actually add users in initial run --- bridge.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bridge.go b/bridge.go index 48a84b8..a38722a 100644 --- a/bridge.go +++ b/bridge.go @@ -113,11 +113,12 @@ func startBridge(discord *discordgo.Session, discordGID string, discordCID strin u, err := discord.User(vs.UserID) if err != nil { log.Println("error looking up username") - Bridge.DiscordUsers[u.Username] = true - Bridge.Client.Do(func() { - Bridge.Client.Self.Channel.Send(fmt.Sprintf("%v has joined Discord channel\n", u.Username), false) - }) + continue } + Bridge.DiscordUsers[u.Username] = true + Bridge.Client.Do(func() { + Bridge.Client.Self.Channel.Send(fmt.Sprintf("%v has joined Discord channel\n", u.Username), false) + }) } } Bridge.Connected = true