ZeroKnight / ZeroBot

My personal IRC/Multi-protocol Bot created (and re-created) for education and amusement.
MIT License
1 stars 0 forks source link

Add core-level generalized command/interface for managing phrases for feature modules #47

Open ZeroKnight opened 9 months ago

ZeroKnight commented 9 months ago

This is some vague brainstorming for the future, but if possible, it would be nice to have some kind of high-level command/interface that modules can implement that allows adding "phrases" to the database. Since a lot of modules use various phrases/lines of dialogue, rather than implementing an add and remove command for each of them they can adhere to an interface imposed by the core. In theory, the core would eliminate the need for command and database boilerplate and the feature module just needs to worry about validating and massaging the data it receives.