| 383 | } |
| 384 | |
| 385 | func openTimerInBrowser(configuration config.Configuration) error { |
| 386 | timerurl := configuration.TimerUrl |
| 387 | if timerurl == "" { |
| 388 | return fmt.Errorf("Timer url is not configured") |
| 389 | } |
| 390 | if configuration.TimerRoom != "" { |
| 391 | if !strings.HasSuffix(configuration.TimerUrl, "/") { |
| 392 | timerurl += "/" |
| 393 | } |
| 394 | timerurl += configuration.TimerRoom |
| 395 | } else { |
| 396 | say.Warning("Timer Room is not configured. To open specific room please configure timer room variable.") |
| 397 | } |
| 398 | return open.OpenInBrowser(timerurl) |
| 399 | } |
| 400 | |
| 401 | func helpRequested(parameter []string) bool { |
| 402 | for i := 0; i < len(parameter); i++ { |