func init() { f, err := os.Open("digits.txt") if err != nil { panic(err) } defer f.Close() s := bufio.NewScanner(f) for s.Scan() { d := strings.TrimPrefix(s.Text(), " 3.") d = strings.Join(strings.Split(d, ""), " ") digits = append(digits, d) } if err := s.Err(); err != nil { panic(err) } twilio.Handle("/", handler) }
func init() { twilio.Handle("/reshare", Reshare) twilio.Handle("/repeat/", Repeat) }
func init() { for f, ft := range fts { ft.Fortunes.Load(f + ".u8") twilio.Handle("/"+f, ft.Handle) } }