diff --git a/main.go b/main.go index 2d6eefd..3006ce2 100644 --- a/main.go +++ b/main.go @@ -45,10 +45,12 @@ func main() { xlog.Info("Connecting ...") bot := matterclient.New(*name, *pass, *team, *server) - //bot.SetLogLevel("debug") + bot.SetLogLevel("debug") +retry: err := bot.Login() if err != nil { xlog.Error(err.Error()) + goto retry } teamId := bot.GetTeamId() for _, ch := range strings.Split(*channels, ",") {