Look into Helpmebot 's MediaWikiApiHelper, possibly combined with a map in the config file of allowed channels?
Probably implement it as a provider interface, which takes a channel name and produces a MediaWikiConfiguration object, with two implementations - one a map in config, the other a pattern based thing.