afk_bot.cli¶
Command-line interface for AFK-Bot.
Attributes¶
Functions¶
Module Contents¶
- afk_bot.cli.app¶
- afk_bot.cli.logger¶
- afk_bot.cli.main() None¶
Invoke the Typer application entry point.
- Returns:
None – This function does not return a value; control is handed to Typer.
- afk_bot.cli.run(secs: float = typer.Option(1.0, '-t', '--time', help='Interval between mouse cursor moves in seconds', show_default=True, min=1.0)) int¶
Run AFK-Bot and move the mouse on a fixed interval.
Disables PyAutoGUI failsafe, then loops forever: sample a random on-screen coordinate, move the cursor there when valid, and sleep for
secsseconds. Interrupt withCTRL+C.- Parameters:
secs (float, default 1.0) – Seconds to wait between successive cursor moves. Must be at least
1.0.- Returns:
int – Exit status
0after aKeyboardInterrupt.
Notes
Hotkey-based abort (
q/esc) is currently disabled on macOS due to accessibility / administrator restrictions.