This commit is contained in:
shoopea 2019-05-26 19:33:10 +08:00
parent 720a1c2fb5
commit d215767dfc

1
bot.go
View File

@ -270,7 +270,6 @@ func botListParsingRule(m *tb.Message) {
}
func botTimer(m *tb.Message) {
var res string
r := regexp.MustCompile("^(?P<Delay>([0-9]{2}h){0,1}([0-9]{2}m){0,1}([0-9]{2}s){0,1}) \"(?<Msg>(.*))\"$")
if r.MatchString(m.Payload) {
log.Printf("Timer : Delay : %s\n", r.ReplaceAllString(m.Payload, "${Delay}"))