Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
fix: better defer usage, cleaning play code
Browse files Browse the repository at this point in the history
  • Loading branch information
keshon committed Feb 29, 2024
1 parent 4efd0cd commit 709489a
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 128 deletions.
3 changes: 3 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ func createDiscordSession(token string) *discordgo.Session {
if err != nil {
log.Fatal("Error creating Discord session", err)
}

session.ShouldReconnectOnError = true // Not sure if this is needed

return session
}

Expand Down
Loading

0 comments on commit 709489a

Please sign in to comment.