If you mean you have a scenario that you want to logout or exit the game on completion, that’s easy. Make a macro in the game that uses the /logout
or /shutdown
command, drag it to a hotbar, assign it a keybind, and have Miqo send the keypress for it at the end. This can be generalised out to use any chat commands at any time, really.
There are already return()
, teleport(name[, estate])
, and teleportIfNotThere(name[, estate])
scenario commands, listed in the built-in help window.
Closing Miqobot after closing the game is more difficult, but if you’re willing to use something like AutoHotkey to make an additional script, it could be done easily enough. For example, a loop that checks if FFXIV is still running, closes Miqobot and then exits if it isn’t, and waits a minute or so before rechecking if it is. There’s no method built into Miqobot for doing this, though.