This commit is contained in:
2021-07-06 11:13:56 -04:00
parent d08e5025fc
commit 791418993e

View File

@ -88,7 +88,7 @@ func listVehicles(m chat1.MsgSummary) {
func deferTime(m chat1.MsgSummary) { func deferTime(m chat1.MsgSummary) {
parts := strings.Split(m.Content.Text.Body, " ") parts := strings.Split(m.Content.Text.Body, " ")
t := parts[1] t := parts[1]
command := strings.Join(parts[1:], " ") command := strings.Join(parts[2:], " ")
m.Content.Text.Body = fmt.Sprintf("!%+v", command) m.Content.Text.Body = fmt.Sprintf("!%+v", command)
timer, err := time.ParseDuration(t) timer, err := time.ParseDuration(t)
if err != nil { if err != nil {