func init() { b := &bot{} l, err := time.LoadLocation(os.Getenv("BIJIN_TIMEZONE")) if err != nil { log.Printf("Error loading location: %v", err) } b.Location = l robots.RegisterRobot("bijin", b) }
// Loads the config file and registers the bot with the server for command /${1/(.+)/\L\1/g}. func init() { p := &bot{} p.ProjectID = os.Getenv("PIVOTAL_PROJECT_ID") p.Token = os.Getenv("PIVOTAL_TOKEN") if p.ProjectID == "" || p.Token == "" { log.Println("PIVOTAL_PROJECT_ID or PIVOTAL_TOKEN not set, Pivotal bot disabled") return } robots.RegisterRobot("pivotal", p) }
func init() { p := &bot{} robots.RegisterRobot("ping", p) }
// Loads the config file and registers the bot with the server for command /store. func init() { s := &bot{} robots.RegisterRobot("store", s) }
func init() { w := &bot{} robots.RegisterRobot("nihongo", w) }
func init() { d := &bot{} d.Random = rand.New(rand.NewSource(time.Now().UnixNano())) robots.RegisterRobot("decide", d) }
func init() { w := &bot{} robots.RegisterRobot("wiki", w) }
func init() { r := &bot{} robots.RegisterRobot("bots", r) }
func init() { y := &bot{} robots.RegisterRobot("youtube", y) }
func init() { s := &bot{} robots.RegisterRobot("bot", s) }
func init() { r := &bot{} r.Random = rand.New(rand.NewSource(time.Now().UnixNano())) robots.RegisterRobot("roll", r) }