Sleep one more time before putting dashes
This commit is contained in:
parent
11f52b7daa
commit
ef2c50d073
4
main.go
4
main.go
@ -751,6 +751,8 @@ func active(ud tgbotapi.Update) {
|
|||||||
editConf.ParseMode = tgbotapi.ModeMarkdown
|
editConf.ParseMode = tgbotapi.ModeMarkdown
|
||||||
Bot.Send(editConf)
|
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
|
// replace the speed with dashes to indicate that we are done being live
|
||||||
buf.Reset()
|
buf.Reset()
|
||||||
@ -1105,6 +1107,8 @@ func info(ud tgbotapi.Update, tokens []string) {
|
|||||||
Bot.Send(editConf)
|
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.
|
// at the end write dashes to indicate that we are done being live.
|
||||||
torrentName := mdReplacer.Replace(torrent.Name)
|
torrentName := mdReplacer.Replace(torrent.Name)
|
||||||
|
Loading…
Reference in New Issue
Block a user