|
|
@ -240,7 +240,6 @@ func setupCommands() { |
|
|
|
}, |
|
|
|
}, |
|
|
|
Triggers: []string{"startcharge", "startc"}, |
|
|
|
Triggers: []string{"startcharge", "startc"}, |
|
|
|
Exec: startCharge, |
|
|
|
Exec: startCharge, |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
commands = append(commands, startCharging) |
|
|
|
commands = append(commands, startCharging) |
|
|
|
|
|
|
|
|
|
|
@ -257,7 +256,6 @@ func setupCommands() { |
|
|
|
}, |
|
|
|
}, |
|
|
|
Triggers: []string{"stopcharge", "stopc"}, |
|
|
|
Triggers: []string{"stopcharge", "stopc"}, |
|
|
|
Exec: stopCharge, |
|
|
|
Exec: stopCharge, |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
commands = append(commands, stopCharging) |
|
|
|
commands = append(commands, stopCharging) |
|
|
|
|
|
|
|
|
|
|
@ -277,4 +275,20 @@ func setupCommands() { |
|
|
|
} |
|
|
|
} |
|
|
|
commands = append(commands, delayCommand) |
|
|
|
commands = append(commands, delayCommand) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
locateCommand := BotCommand{ |
|
|
|
|
|
|
|
Advert: chat1.AdvertiseCommandAPIParam{ |
|
|
|
|
|
|
|
Typ: "public", |
|
|
|
|
|
|
|
Commands: []chat1.UserBotCommandInput{ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Name: "locate", |
|
|
|
|
|
|
|
Description: "Locate your Tesla.", |
|
|
|
|
|
|
|
Usage: "", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
Triggers: []string{"locate", "map", "where","find"}, |
|
|
|
|
|
|
|
Exec: locateVehicle, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
commands = append(commands, locateCommand) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|