Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Update dshardmanager.go #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions dshardmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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!")
Expand Down