zorael / kameloso

IRC bot with Twitch support
Boost Software License 1.0
9 stars 3 forks source link

Split plugins #98

Closed zorael closed 4 years ago

zorael commented 4 years ago

This splits some large plugins into packages, with one main package.d containing the plugin class itself and all annotated handlers, and one or more submodules containing other implementation.

Some files were simply becoming too large. Splitting them up has no intrinsic cost, but special care has to be taken to leave all annotated handlers in the main package.d file, or whichever file contains the plugin class and mixed in awareness. Lastly, some things that were of private visibility had to be made package.