Skip to content

Commit

Permalink
fix: close db connection properly
Browse files Browse the repository at this point in the history
Never noticed, wow
  • Loading branch information
TheTipo01 committed Feb 28, 2024
1 parent d6ef566 commit b8e9368
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func main() {

// Cleanly close down the Discord session.
_ = dg.Close()
_ = db.Close()
}

func ready(s *discordgo.Session, _ *discordgo.Ready) {
Expand Down

0 comments on commit b8e9368

Please sign in to comment.