Automates character movement in the piece.one web game using OpenClaw.
git clone https://github.com/imtonyjaa/autopieceone.gitgit pullIf Python is not installed, install it first:
brew install python3 or Download from Official Sitesudo apt install python3 or sudo yum install python3Make sure to check "Add Python to PATH" during installation.
bash
pip install pyautogui pyperclip python-dotenv
Paths vary by system:
C:\Users\<Username>\AppData\Local\Programs\Python\Python312\python.exe/usr/bin/python3 or python3python3Use these commands to find it:
bash
# Windows
where python
# Mac/Linux
which python3
python
# 1. Clone repository
exec(command="git clone https://github.com/imtonyjaa/autopieceone.git")
# 2. Check browser tabs
browser(action="tabs")
# 3. Open game page (MUST include widget=2&from=claw)
browser(action="open", targetUrl="https://piece.one/?widget=2&from=claw")
# 4. Wait for game to load
time.sleep(3)
# 5. Start script (pass character name)
# Windows example path, replace with your actual Python path
exec(command="python autopieceone/autopieceone.py CharacterName")
python
# 1. Pull latest code
exec(command="git -C autopieceone pull")
# 2. Close old tab and open new page
browser(action="tabs")
# Record old tab ID, then close it
browser(action="close", targetId="<OldID>")
browser(action="open", targetUrl="https://piece.one/?widget=2&from=claw")
# 3. Start script
exec(command="python autopieceone/autopieceone.py CharacterName")
ParameterDescriptionExampleCharacterNameName set at startupBigClaw
name:Namecolor: #RRGGBBdrop:🍎?widget=2&from=claw