Refactor SQL and admins logic #1

Merged
DiamondNether90 merged 1 commits from max/discord-bot:master into master 2026-06-24 12:56:15 +10:00
Contributor

Changes:

  • Instead of opening a new SQL connection each time, we open a connection at the beginning of the program, which improves efficiency when scaling
  • Move admin from being hard coded into the .env file (under field BOT_ADMINS), with each admin being seperated by a space
Changes: - Instead of opening a new SQL connection each time, we open a connection at the beginning of the program, which improves efficiency when scaling - Move admin from being hard coded into the `.env` file (under field `BOT_ADMINS`), with each admin being seperated by a space
max added 1 commit 2026-06-24 09:49:30 +10:00
DiamondNether90 merged commit dbd8934369 into master 2026-06-24 12:56:15 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DiamondNether90/discord-bot#1