Browse Source

Fix typo

master
Gregory Rudolph 3 years ago
parent
commit
791418993e
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 2
      commands.go

2
commands.go

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

Loading…
Cancel
Save