Open rjanja opened 7 years ago
@rjanja can't you already define multiple responders inside the same module?
@doomspork This may be an edge case, but HedwigSimpleResponders
provides a number of responders that would be nice to pull into projects (at least, our project) as a whole. If a module provides multiple responders, users cannot currently include them all in a single line but must include each of them using a separate line of code.
In some cases it is convenient to define a collection of responders outside of the bot's configuration file, and then to reference that collection as a list of responders to load with the bot.
Ex.:
Instead of:
It becomes possible to delegate selection of responders:
Any options defined with the collection are in turn passed to the collector function.