- ADB client (connect, tap, swipe, screencap, app control) - Vision module (in-memory screenshot + OpenCV template matching) - Action loader (auto-discovers .py files in actions/) - Engine (screenshot → detect → act loop with YAML playbook) - 12 built-in actions: tap, click, wait, swipe, find, find_and_click, wait_until, click_seq, keyevent, app, log - Example custom action template - Debug screenshot tool for template creation - Detailed plan.md with 20 actions across 9 phases - Sample playbook with 10 steps
11 lines
237 B
Python
11 lines
237 B
Python
"""Action: log — write a message to the bot log."""
|
|
import time
|
|
|
|
|
|
class Action:
|
|
name = "log"
|
|
|
|
def run(self, ctx, params):
|
|
msg = params.get("message", params.get("msg", ""))
|
|
ctx["log"].info("[PLAYBOOK] %s", msg)
|