Ulti
Member
I'd like to see the ability that every "x" seconds, KoLMafia can run a saved command in the gCLI. I don't care if it get queued or not, but the idea is that one should be added to the queue on an interval. I know it's possible to have the interval controlled by JavaScript and ping KoLMafia, but I'd rather that KoLMafia had a built-in cronjob-like feature. When the command is finally run, I believe it would be easy for scripters to control an "_" property regarding the last time the command was run to know whether or not to run the 2nd command so close to the first depending on the scripter's needs. The task I had in mind was checking pending clan applications, the clan activity log, and logging my KoLMafia activity regularity to decide if I'm by my computer clicking in-game doing anything or probably doing other stuff. Then based on my activity decide if I'm inactive and probably doing other stuff, run my farming script if I have adventures left. Then check up on the script about 5 minutes later check on my activity again to decide if the script is doing anything. If not, decide if the script encountered an error and attempt to re-run it. After 3 attempts or so, decide not to run it anymore, then as rollover approaches to overdrink if I'm not gonna lose turns to rollover, then finally equip my rollover gear. I understand all this can be controlled by JavaScript within the relay browser, but I think having it built it allows me to not keep a KoL open in a tab if I'm busy nor put unnecessary HTTP Request strain on the browser if Java can handle this already.