SolarDrew / skill-rpgchar

3 stars 0 forks source link

Modularity #30

Open SolarDrew opened 6 years ago

SolarDrew commented 6 years ago

I'd like to make this skill modular to allow different parts of the rules to be used or not as per preference, but I'm not sure what the best way to do this would be.

Similarly I'd like to structure this skill such that the infrastructure could support any of several game systems (other D&D editions, Monster of the Week, or whatever) which you could again choose from when setting up the bot. It's even less clear to me if or how this could be made to work well.

SolarDrew commented 6 years ago

Conceptually I think the neatest solution might be to concentrate vital core functionality here and to factor out the game- or rule- specific stuff into separate skill repos which could then be added (or not) in the opsdroid config. The practical difficulty with this would be in making sure each skill had access to all the info it needed to work properly.

SolarDrew commented 6 years ago

Alternatively core functionality could just be in an installable library rather than an opsdroid skill, so the skills could import what they need from there.