This commit is contained in:
suyl
2021-08-04 15:14:56 +08:00
parent 2d75a94b24
commit c60d5d6bfd

View File

@@ -251,7 +251,7 @@ func (t *TcpClient) doPrint(key string) (err error) {
if sounds := regexpSoundSpan.FindStringSubmatch(printMsg.Content); len(sounds) > 0 {
sound := sounds[1]
lenTime := time.Duration(utf8.RuneCountInString(sound)) * time.Second
time.Sleep(lenTime)
time.Sleep(lenTime / 2)
}
}
}