diff --git a/fragbots/client/fragbot.go b/fragbots/client/fragbot.go index a1a5cf3..4b23e2c 100644 --- a/fragbots/client/fragbot.go +++ b/fragbots/client/fragbot.go @@ -125,6 +125,11 @@ func (fb *FragBot) onParty(ign string) { logging.SendEmbedThumbnail(fb.data.DiscInfo.LogWebhook, fb.data.AccountInfo.Username, ign+" just partied "+fb.data.AccountInfo.Username+"!\nQueue Position: "+strconv.FormatInt(int64(queueLen), 10)+"\nEstimated Time: `"+strconv.FormatInt(int64(((queueLen-1)*(fb.waitTime+1))+1), 10)+" seconds"+"`", "https://mc-heads.net/avatar/"+ign) logging.Log("Received party invite from: " + ign) + if fb == nil { + logging.Log("Fragbot became nil") + } else if fb.requester == nil { + logging.Log("Requester became nil") + } if err := fb.requester.addUse(fragBotUser.Id); err != nil { logging.LogWarn("AddUse failed for: "+ign+", err:", err) } diff --git a/fragbots/logging/embeds.go b/fragbots/logging/embeds.go index a512fe9..6c2a557 100644 --- a/fragbots/logging/embeds.go +++ b/fragbots/logging/embeds.go @@ -11,7 +11,7 @@ import ( const FooterIcon = "https://cdn.discordapp.com/emojis/823999418592264232.webp?size=240&quality=lossless" const DefaultEmbedColor = 3388927 -const Version = "3.0.2" +const Version = "3.0.3" // https://github.com/bensch777/discord-webhook-golang/blob/v0.0.5/discordwebhook.go @@ -72,7 +72,7 @@ func SendEmbed(webhook string, username string, description string) { Description: description, Color: DefaultEmbedColor, Footer: Footer{ - Text: "FragBots V" + Version, + Text: "FragBots " + Version, IconUrl: FooterIcon, }, Timestamp: time.Now(), @@ -94,7 +94,7 @@ func SendEmbedThumbnail(webhook string, username string, description string, thu Description: description, Color: DefaultEmbedColor, Footer: Footer{ - Text: "FragBots V" + Version, + Text: "FragBots " + Version, IconUrl: FooterIcon, }, Timestamp: time.Now(),