Exemple #1
0
func (fd *factoidDriver) RegisterPlugins(pm base.PluginManager) {
	// pm == fd in this case, but meh.
	pm.AddPlugin(&FactoidPlugin{fd, fd_identifiers})
}
Exemple #2
0
func (qd *quoteDriver) RegisterPlugins(pm base.PluginManager) {
	pm.AddPlugin(&QuotePlugin{qd, qd_plugin_lookup})
}
Exemple #3
0
func (dd *decisionDriver) RegisterPlugins(pm base.PluginManager) {
	pm.AddPlugin(&DecisionPlugin{dd, dd_rand})
	pm.AddPlugin(&DecisionPlugin{dd, dd_decider})
}