If you have your crafter classes high enough, use the Scenario Engine feature to tell the bot to repair after x amount of time.
For example:
Chapter 1:
teleport(name_of_teleport_destination)
changeJob(name_of_gathering_class)
selectGatherPreset(gather_preset_name_that_include_my_grid)
Chapter 2:
workFor(02:00)
StartGathering()
teleport(name_of_teleport_destination)
dismount()
repair()
repeatChapter(4)
You need to have the repair icon on your hotbar with a keybind set.
The grid you’ll use must be connected to an Aetheryte, since you can’t repair mid air, and it’s not safe to dismount randomly anywhere, teleporting to the aetheryte, then dismount there and repair is a safe choice.
With this example, the bot will work for 2 hours (real time), and it will repeat the chapter 2 four times.
It’s just an example, there’s plenty of ways to handle it with Scenario Engine.