06000208 / sandplate

An opinionated discord.js bot template
The Unlicense
2 stars 0 forks source link

Module disabling schema #26

Closed 06000208 closed 3 years ago

06000208 commented 4 years ago

New functionality where the Handler class generates a modules.json file under ./data/ which lets you "disable" modules, causing them to no longer be touched by requireDirectory, retaining the option of manually loading them.

Dependant on #25, and is the reason behind it.

This way, disabling modules doesn't involve changing the file extensions and plays much nicer with git, although the method of tacking .disabled onto the end of a module won't ever stop working.

Could do with new accompanying enable and disable command in the module commands module that also loads/unloads modules appropriately when enabled/disabled.

06000208 commented 3 years ago

Done in 0.0.7