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

Refactor DB connection code #41

Open
cwarwicker opened this issue Jan 20, 2023 · 0 comments
Open

Refactor DB connection code #41

cwarwicker opened this issue Jan 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@cwarwicker
Copy link

  • Remove db connection from bot.js
  • Only connect to database within commands which need it, and then close connection when finished
  • Make sure on error we still close connections
@cwarwicker cwarwicker added the enhancement New feature or request label Jan 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant