test
This commit is contained in:
parent
d215767dfc
commit
208722b012
2
bot.go
2
bot.go
@ -270,7 +270,7 @@ func botListParsingRule(m *tb.Message) {
|
||||
}
|
||||
|
||||
func botTimer(m *tb.Message) {
|
||||
r := regexp.MustCompile("^(?P<Delay>([0-9]{2}h){0,1}([0-9]{2}m){0,1}([0-9]{2}s){0,1}) \"(?<Msg>(.*))\"$")
|
||||
r := regexp.MustCompile("^(?P<Delay>([0-9]{2}h){0,1}([0-9]{2}m){0,1}([0-9]{2}s){0,1}) \"(?P<Msg>(.*))\"$")
|
||||
if r.MatchString(m.Payload) {
|
||||
log.Printf("Timer : Delay : %s\n", r.ReplaceAllString(m.Payload, "${Delay}"))
|
||||
log.Printf("Timer : Msg : %s\n", r.ReplaceAllString(m.Payload, "${Msg}"))
|
||||
|
Loading…
Reference in New Issue
Block a user