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.

28 lines
443 B

5 years ago
  1. package main
  2. import (
  3. "fmt"
  4. "github.com/fatih/color"
  5. )
  6. const version = "0.0.1-dev"
  7. func main() {
  8. savelog()
  9. color.Green("canaryBot")
  10. color.Yellow("version: " + version)
  11. color.Magenta("------matrix------")
  12. readConfig()
  13. loginMatrix()
  14. fmt.Print("matrix token: ")
  15. color.Cyan(matrixToken.AccessToken)
  16. fmt.Println("")
  17. matrixSendMsg("canaryBot started")
  18. color.Magenta("------starting to listen------")
  19. checker(config.Services)
  20. }