func helpRun(b *lazlo.Broker) { cb := b.MessageCallback(`(?i)help`, true) for { pm := <-cb.Chan go getHelp(b, &pm) } }
func pingRun(b *lazlo.Broker) { cb := b.MessageCallback(`(?i)(ping|syn)`, true) for { pm := <-cb.Chan pm.Event.Reply(randReply()) } }