bclindner / chipbot2.0

Discord port of the original IRC Chiptunes=WIN bot.
0 stars 0 forks source link

Modular command classes #7

Closed bclindner closed 6 years ago

bclindner commented 6 years ago

A base class for deriving custom command modules off of would be nice. Being able to define a custom module that automatically registers itself with the bot upon construction and has functions for handling input might be helpful later on, but I'm not sure it'd be worth the extra dev time.

bclindner commented 6 years ago

I think I'm gonna go ahead with this. As it is, the way the handler functions are implemented (as functions in the index.js system), things are gonna get really messy in the index file. Best practice is keep as much business code out of the index.js file as possible, AFAICT.

bclindner commented 6 years ago

Nope. I'll have to figure something else out for now - this is more trouble than it's worth.