Fix typo
This commit is contained in:
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user