Exemple #1
0
func (sd *seenDriver) RegisterHandlers(r event.EventRegistry) {
	r.AddHandler(bot.NewHandler(sd_record_pm), "bot_privmsg", "bot_action")
	r.AddHandler(bot.NewHandler(sd_record_lines), "bot_privmsg", "bot_action")
	r.AddHandler(bot.NewHandler(sd_record_chan), "bot_join", "bot_part")
	r.AddHandler(bot.NewHandler(sd_record_nick), "bot_quit", "bot_nick")
	r.AddHandler(bot.NewHandler(sd_record_kick), "bot_kick")
	r.AddHandler(bot.NewHandler(sd_privmsg), "bot_privmsg")
	r.AddHandler(bot.NewHandler(sd_smoke), "bot_privmsg", "bot_action")
}
Exemple #2
0
func (qd *quoteDriver) RegisterHandlers(r event.EventRegistry) {
	r.AddHandler(bot.NewHandler(qd_privmsg), "bot_privmsg")
	//	r.AddHandler(bot.NewHandler(qd_action), "bot_action")
}
Exemple #3
0
func (nd *netDriver) RegisterHandlers(r event.EventRegistry) {
	r.AddHandler(bot.NewHandler(nd_privmsg), "bot_privmsg")
}
Exemple #4
0
func (ud *urlDriver) RegisterHandlers(r event.EventRegistry) {
	r.AddHandler(bot.NewHandler(ud_privmsg), "bot_privmsg")
}
Exemple #5
0
func (dd *decisionDriver) RegisterHandlers(r event.EventRegistry) {
	r.AddHandler(bot.NewHandler(dd_privmsg), "bot_privmsg")
}
Exemple #6
0
func (cd *calcDriver) RegisterHandlers(r event.EventRegistry) {
	r.AddHandler(bot.NewHandler(cd_privmsg), "bot_privmsg")
}
Exemple #7
0
func (fd *factoidDriver) RegisterHandlers(r event.EventRegistry) {
	r.AddHandler(bot.NewHandler(fd_privmsg), "bot_privmsg")
	r.AddHandler(bot.NewHandler(fd_action), "bot_action")
}