mirror of
https://github.com/stryan/mumble-discord-bridge.git
synced 2024-11-14 19:45:41 -05:00
actually add users in initial run
This commit is contained in:
parent
ab1046838c
commit
8e2fe4f3b7
@ -113,13 +113,14 @@ func startBridge(discord *discordgo.Session, discordGID string, discordCID strin
|
|||||||
u, err := discord.User(vs.UserID)
|
u, err := discord.User(vs.UserID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("error looking up username")
|
log.Println("error looking up username")
|
||||||
|
continue
|
||||||
|
}
|
||||||
Bridge.DiscordUsers[u.Username] = true
|
Bridge.DiscordUsers[u.Username] = true
|
||||||
Bridge.Client.Do(func() {
|
Bridge.Client.Do(func() {
|
||||||
Bridge.Client.Self.Channel.Send(fmt.Sprintf("%v has joined Discord channel\n", u.Username), false)
|
Bridge.Client.Self.Channel.Send(fmt.Sprintf("%v has joined Discord channel\n", u.Username), false)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Bridge.Connected = true
|
Bridge.Connected = true
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user