Skip to content

Commit

Permalink
Merge pull request #13
Browse files Browse the repository at this point in the history
debugging
  • Loading branch information
IshaanRao authored Jul 14, 2023
2 parents c314a72 + aa432e0 commit db77f6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions fragbots/client/fragbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
6 changes: 3 additions & 3 deletions fragbots/logging/embeds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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(),
Expand All @@ -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(),
Expand Down

0 comments on commit db77f6d

Please sign in to comment.