The chatops bot of aventer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

init.go 434B

1234567891011121314151617
  1. package main
  2. import (
  3. "flag"
  4. )
  5. func init() {
  6. flag.StringVar(&BindAddress, "server", "0.0.0.0:4050", "bot server port")
  7. flag.StringVar(&DatabaseType, "datastore", "sqlite3", "database type")
  8. flag.StringVar(&DatabaseURL, "datastoreurl", "go-neb.db?_busy_timeout=5000", "database url")
  9. flag.StringVar(&BaseURL, "baseurl", "http://localhost:4050", "base url")
  10. LogDir = "./log"
  11. ConfigFile = "./data/config.yaml"
  12. flag.Parse()
  13. }