From be60c9a75f4d6e2e09ef767087adba5e93710a62 Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Wed, 25 Sep 2019 08:42:35 -0400 Subject: [PATCH 1/6] Update dshardmanager.go add footer text: "time" to the shard events+status embeds in order to make the timestamp display on mobile --- dshardmanager.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dshardmanager.go b/dshardmanager.go index 6cec2e7..caa333d 100644 --- a/dshardmanager.go +++ b/dshardmanager.go @@ -328,6 +328,9 @@ func (m *Manager) logEventToDiscord(evt *Event) { Description: prefix + str, Timestamp: evt.Time.Format(time.RFC3339), Color: eventColors[evt.Type], + Footer: &discordgo.MessageEmbedFooter{ + Text: "Time", + }, } _, err := m.bareSession.ChannelMessageSendEmbed(m.LogChannel, embed) @@ -420,6 +423,9 @@ func (m *Manager) updateStatusMessage(mID int64) (int64, error) { Description: content, Color: 0x4286f4, Timestamp: time.Now().Format(time.RFC3339), + Footer: &discordgo.MessageEmbedFooter{ + Text: "Time", + }, } if mID == 0 { From 65696b62afb14c63dbf862aae4deefecd45ce419 Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Wed, 25 Sep 2019 08:53:05 -0400 Subject: [PATCH 2/6] made formatting better ive never done anything like this i probably broke everything k --- dshardmanager.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dshardmanager.go b/dshardmanager.go index caa333d..52df69d 100644 --- a/dshardmanager.go +++ b/dshardmanager.go @@ -328,8 +328,8 @@ func (m *Manager) logEventToDiscord(evt *Event) { Description: prefix + str, Timestamp: evt.Time.Format(time.RFC3339), Color: eventColors[evt.Type], - Footer: &discordgo.MessageEmbedFooter{ - Text: "Time", + Footer: &discordgo.MessageEmbedFooter{ + Text: "Time", }, } @@ -423,8 +423,8 @@ func (m *Manager) updateStatusMessage(mID int64) (int64, error) { Description: content, Color: 0x4286f4, Timestamp: time.Now().Format(time.RFC3339), - Footer: &discordgo.MessageEmbedFooter{ - Text: "Time", + Footer: &discordgo.MessageEmbedFooter{ + Text: "Time", }, } From e2a0b3fd77fdd56cd2822eef594e9450b5d55d6c Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Thu, 26 Sep 2019 07:55:48 -0400 Subject: [PATCH 3/6] ok this time the format is actually good.. maybe --- dshardmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dshardmanager.go b/dshardmanager.go index 52df69d..c87186a 100644 --- a/dshardmanager.go +++ b/dshardmanager.go @@ -329,7 +329,7 @@ func (m *Manager) logEventToDiscord(evt *Event) { Timestamp: evt.Time.Format(time.RFC3339), Color: eventColors[evt.Type], Footer: &discordgo.MessageEmbedFooter{ - Text: "Time", + Text: "Time", }, } From 02038db09cba395c2e4f5994027fac7793a66a99 Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Thu, 26 Sep 2019 07:59:43 -0400 Subject: [PATCH 4/6] forgot the other embed lol --- dshardmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dshardmanager.go b/dshardmanager.go index c87186a..0897875 100644 --- a/dshardmanager.go +++ b/dshardmanager.go @@ -424,7 +424,7 @@ func (m *Manager) updateStatusMessage(mID int64) (int64, error) { Color: 0x4286f4, Timestamp: time.Now().Format(time.RFC3339), Footer: &discordgo.MessageEmbedFooter{ - Text: "Time", + Text: "Time", }, } From c31018f9862cd8beb63344f774b93c8213edfdfb Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Wed, 2 Oct 2019 09:08:48 -0400 Subject: [PATCH 5/6] fixed spelling in example faled > failed --- example/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/main.go b/example/main.go index 74db2bb..788174e 100644 --- a/example/main.go +++ b/example/main.go @@ -50,7 +50,7 @@ func main() { log.Println("Starting the shard manager") err = manager.Start() if err != nil { - log.Fatal("Faled to start: ", err) + log.Fatal("Failed to start: ", err) } log.Println("Started!") From bc498069cb54c3ce976d0545d63fd4657223edd0 Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Wed, 2 Oct 2019 10:13:33 -0400 Subject: [PATCH 6/6] fixed more spelling in example --- example/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/main.go b/example/main.go index 788174e..4029b82 100644 --- a/example/main.go +++ b/example/main.go @@ -31,7 +31,7 @@ func main() { } if !strings.HasPrefix(FlagToken, "Bot ") { - log.Fatal("dshardmanager only works on bot accounts, did you maybe forgot to add `Bot ` before the token?") + log.Fatal("dshardmanager only works on bot accounts, did you forget to add `Bot ` before the token?") } manager := dshardmanager.New(FlagToken)