From ef2c50d073c225b9c8171c77e384fc343d76c23d Mon Sep 17 00:00:00 2001 From: pyed Date: Mon, 13 Mar 2017 22:56:18 +0300 Subject: [PATCH] Sleep one more time before putting dashes --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 571f9bf..7c5ef97 100644 --- a/main.go +++ b/main.go @@ -751,6 +751,8 @@ func active(ud tgbotapi.Update) { editConf.ParseMode = tgbotapi.ModeMarkdown Bot.Send(editConf) } + // sleep one more time before putting the dashes + time.Sleep(time.Second * interval) // replace the speed with dashes to indicate that we are done being live buf.Reset() @@ -1105,6 +1107,8 @@ func info(ud tgbotapi.Update, tokens []string) { Bot.Send(editConf) } + // sleep one more time before the dashes + time.Sleep(time.Second * interval) // at the end write dashes to indicate that we are done being live. torrentName := mdReplacer.Replace(torrent.Name)