unitycoders / uc_pircbotx

A bot for #unity-coders using pircbotx
GNU General Public License v3.0
3 stars 2 forks source link

Use dependency injection for the bot's internals #79

Closed webpigeon closed 8 years ago

webpigeon commented 8 years ago

Removes the need for singletons and static blocks in the code, making the code easier to unit test. Also makes it easier to swap stuff out at runtime (ie, use different database engine or authentication backend).