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

Refactor DB connection code #41

@cwarwicker

Description

@cwarwicker
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions