MitchTalmadge / StudyBot

A Discord bot for Universities. Host one or more majors in one or more guilds. Automate roles, channels, verification, and more.
https://hub.docker.com/r/mitchtalmadge/studybot
Apache License 2.0
9 stars 0 forks source link

Dependency Injection #29

Open MitchTalmadge opened 4 years ago

MitchTalmadge commented 4 years ago

Shouldn't be using static classes for everything. https://github.com/inversify/InversifyJS

MitchTalmadge commented 4 years ago

I've started making new classes so that they are non-static. Once I get time I'd like to go through and convert most if not all static classes (definitely all static services) to non-static. Pass in guildContext into the constructor instead of every single method.