codesupport / discord-bot

The CodeSupport Discord Bot
https://codesupport.dev/discord
MIT License
21 stars 19 forks source link

Add tsyringe to handle DI #298

Closed LamboCreeper closed 2 months ago

LamboCreeper commented 2 months ago

Ahead of the introduction of a database to handle event tracking for our new role system, I have introduced TSyringe to handle dependency injection - instead of the awful getInstance() mechanism we have currently. This will make injecting repositories much easier.

I've had to refactor some tests in the process and deleted some files which are not used. So a bit of a clean up too!