Skip to content

NibbinNone/travel-frog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ๆ—…่กŒ้’่›™ Travel Frog ๐Ÿธ

English | ไธญๆ–‡


ไธญๆ–‡

้กน็›ฎไป‹็ป

ๆ—…่กŒ้’่›™ๆ˜ฏไธ€ไธชๅŸบไบŽ OpenClaw ็š„ๆ”พ็ฝฎ็ฑป Agent ๆธธๆˆใ€‚ไฝ ็š„้’่›™ไผš่‡ชไธปๆ—…่กŒใ€ๅฏ„ๆ˜Žไฟก็‰‡ใ€ๆ‹็…ง็‰‡ใ€ๅ†™ๆ—ฅ่ฎฐ๏ผŒๅฐฑๅƒ็ปๅ…ธ็š„ใ€Šๆ—…่กŒ้’่›™ใ€‹ๆธธๆˆไธ€ๆ ทใ€‚

โœจ ็‰นๆ€ง

  • ๐Ÿธ ่‡ชไธปๆ—…่กŒ โ€” ้’่›™ไผšๆ นๆฎๅฟƒๆƒ…ๅ’Œๆ—ถ้—ด่‡ชๅทฑๅ†ณๅฎšๅ‡บ้—จๆ—…่กŒ
  • ๐Ÿ“ฎ ๆ˜Žไฟก็‰‡็ณป็ปŸ โ€” ๆ—…้€”ไธญไผšๅฏ„ๆ˜Žไฟก็‰‡ๅ›žๆฅ๏ผŒๅธฆๅ›พ็‰‡ๅ’Œๆ–‡ๅญ—
  • ๐Ÿ“ธ ๆ‹็…งๅŠŸ่ƒฝ โ€” ๅฏไปฅ่ฎฉ้’่›™ๆ‹็…งๅˆ†ไบซๅฝ“ๅ‰็Šถๆ€
  • ๐Ÿ“” ๆ—ฅ่ฎฐ็ณป็ปŸ โ€” ้’่›™ไผšๅ†™ๆ—ฅ่ฎฐ่ฎฐๅฝ•ๆฏๅคฉ็š„็ปๅކ
  • ๐ŸŽ ็บชๅฟตๅ“ๆ”ถ้›† โ€” ๆ—…่กŒๅ›žๆฅไผšๅธฆๅ›žๅฝ“ๅœฐ็บชๅฟตๅ“
  • ๐Ÿ—บ๏ธ ไธ–็•ŒๆŽข็ดข โ€” ้’่›™ไผš้€ๆญฅ่งฃ้”ๆ–ฐๅœฐๅŒบ๏ผŒๅญฆไน ๅฝ“ๅœฐๆ–‡ๅŒ–
  • ๐ŸŽจ AI ๅ›พ็‰‡็”Ÿๆˆ โ€” ๆ˜Žไฟก็‰‡ๅ’Œ็…ง็‰‡็”ฑ AI ่‡ชๅŠจ็”Ÿๆˆ๏ผˆๆŽจ่ OpenAI gpt-image-1.5๏ผ‰

๐Ÿ“‹ ๅ‰็ฝฎๅ‡†ๅค‡

ๅผ€ๅง‹ไน‹ๅ‰๏ผŒ่ฏทๅ‡†ๅค‡ๅฅฝไปฅไธ‹ไฟกๆฏ๏ผš

็ฑปๅž‹ ่ฏดๆ˜Ž ่Žทๅ–ๆ–นๅผ
Discord Bot Token ๆˆ– Telegram Bot Token ๆถˆๆฏๆ”ถๅ‘๏ผˆๅฟ…้œ€๏ผ‰ Discord Developer Portal / BotFather
UserId ๆถˆๆฏๅ‘้€็›ฎๆ ‡๏ผˆๅฟ…้œ€๏ผ‰ Telegram: ้€š่ฟ‡ @userinfobot ่Žทๅ–
OpenAI API Key AI ๅ›พ็‰‡็”Ÿๆˆ๏ผˆๅฏ้€‰๏ผŒๆŽจ่๏ผ‰ OpenAI Platform
Gemini API Key AI ๅ›พ็‰‡็”Ÿๆˆ๏ผˆๅฏ้€‰๏ผŒๆ›ฟไปฃๆ–นๆกˆ๏ผ‰ Google AI Studio

๐Ÿš€ ๅฟซ้€Ÿๅผ€ๅง‹

่‡ชๅŠจๅฎ‰่ฃ…๏ผˆๆŽจ่๏ผ‰

npx travel-frog@latest

ๅฎ‰่ฃ…ๅ™จไผšๅผ•ๅฏผไฝ ๅฎŒๆˆ๏ผš

  1. ็Žฏๅขƒๆฃ€ๆŸฅ
  2. Skill ๅฎ‰่ฃ…
  3. Workspace ๅˆ›ๅปบ
  4. ็ป™้’่›™่ตทๅ
  5. ้…็ฝฎๆถˆๆฏ้ข‘้“
  6. ่ฎพ็ฝฎๅ›พ็‰‡็”Ÿๆˆ
  7. ่‡ชๅŠจ้…็ฝฎ OpenClaw

ๆ‰‹ๅŠจๅฎ‰่ฃ…

ๅฆ‚ๆžœไฝ ๆ›ดๅ–œๆฌขๆ‰‹ๅŠจ้…็ฝฎ๏ผš

1. ๅฎ‰่ฃ… skill

clawhub install travel-frog -workdir ~/.openclaw/workspace-frog

2. ๅคๅˆถๆจกๆฟๆ–‡ไปถ

SOURCE_DIR=~/.openclaw/workspace-frog/skills/travel-frog/templates
DEST_DIR=~/.openclaw/workspace-frog

# ไธ€ๆฌกๆ€งๅคๅˆถๆ‰€ๆœ‰ๆ–‡ไปถๅ’Œ็›ฎๅฝ•
cp "$SOURCE_DIR"/{AGENTS.md,SOUL.md,HEARTBEAT.md,TOOLS.md,IDENTITY.md} "$DEST_DIR/"
cp -r "$SOURCE_DIR/memory" "$DEST_DIR/"

3. ็ผ–่พ‘ IDENTITY.md ็ป™้’่›™่ตทๅ

nano ~/.openclaw/workspace-frog/IDENTITY.md

4. ้…็ฝฎ OpenClaw

็ผ–่พ‘ ~/.openclaw/openclaw.json๏ผš

{
  "agents": {
    "list": [
      {
        "id": "frog",
        "workspace": "~/.openclaw/workspace-frog",
        "skills": ["travel-frog"]
      }
    ]
  },
  "bindings": [
    { "agentId": "frog", "match": {"channel": "discord", "accountId": "frog"}}
  ],
  "tools": {
    "profile": "full",
    "sessions": {"visibility": "all"}
  },
  "channels": {
    "discord": {
      "accounts": {
        "frog": {
          "token": "TOKEN"
        }
      }
    }
  }
}

5. ้…็ฝฎๆถˆๆฏ้ข‘้“

็ผ–่พ‘ ~/.openclaw/workspace-frog/TOOLS.md๏ผŒๅกซๅ†™ไฝ ็š„้ข‘้“ไฟกๆฏ๏ผš

## ๆถˆๆฏๅ‘้€

- `accountId`: `frog`
- `channel`: `discord`๏ผˆๆˆ– `telegram`๏ผ‰
- `target`: `TARGET`๏ผˆdiscord:UserId/telegram:UserId๏ผ‰

6. ้…็ฝฎๅ›พ็‰‡็”Ÿๆˆ๏ผˆๅฏ้€‰๏ผ‰

ๅฐ†ๅ…จๅฑ€ๅฎ‰่ฃ…็š„ๅ›พ็‰‡็”Ÿๆˆ skill ่ฝฏ้“พๆŽฅๅˆฐ workspace ไธญ๏ผš

# ๆ‰พๅˆฐๅ…จๅฑ€ skill ็›ฎๅฝ•๏ผˆไบŒ้€‰ไธ€๏ผ‰
# macOS: /opt/homebrew/lib/node_modules/openclaw/skills/
# Linux: ~/.npm-global/lib/node_modules/openclaw/skills/

GLOBAL_SKILLS=/opt/homebrew/lib/node_modules/openclaw/skills
ln -s "$GLOBAL_SKILLS/openai-image-gen" ~/.openclaw/workspace-frog/skills/
ln -s "$GLOBAL_SKILLS/nano-banana-pro" ~/.openclaw/workspace-frog/skills/

้…็ฝฎ API key ๅˆฐ ~/.openclaw/.env๏ผš

OPENAI_API_KEY=sk-**
GEMINI_API_KEY=sk-**

7. ๅฏๅŠจ OpenClaw

openclaw gateway start

8. ้…็ฝฎๅฎšๆ—ถไปปๅŠก

openclaw cron add \
  --every 15m \
  --name "Travel Frog Engine" \
  --timeout-seconds 300 \
  --agent "frog" \
  --no-deliver \
  --message "็”จ exec ่ฟ่กŒ \`python3 skills/travel-frog/scripts/frog_engine.py tick\`, ๅฆ‚ๆžœ่พ“ๅ‡บๅŒ…ๅซ\`\"events\": []\`, ็›ดๆŽฅ่ฟ”ๅ›ž NO_REPLYใ€‚ๅฆๅˆ™่ฏปๅ– HEARTBEAT.md ๅค„็†่ฟ”ๅ›ž็š„ไบ‹ไปถใ€‚"

๐Ÿ“– ไฝฟ็”จๆ–นๆณ•

ๆŸฅ็œ‹้’่›™็Šถๆ€

ๅœจ้…็ฝฎ็š„้ข‘้“ไธญๅ‘้€๏ผš

  • ็œ‹็œ‹่›™
  • ๅœจๅนฒๅ˜›
  • frog status

ๆŸฅ็œ‹ๆ˜Žไฟก็‰‡ๆ”ถ่—

  • ๆ˜Žไฟก็‰‡
  • ็œ‹ๆ˜Žไฟก็‰‡
  • postcards

่ฎฉ้’่›™ๆ‹็…ง

  • ๆ‹็…ง
  • ๆ‹ๅผ ็…ง
  • ๆฅๅผ ็…ง็‰‡

ๅฌๅ›ž้’่›™

  • ๅ›žๆฅ
  • ๅฌๅ›ž
  • ๅซ้†’

ๆŽจ่ๅœฐๆ–น

  • ไฝ ๅบ”่ฏฅๅŽปๅŒ—ๆตท้“็œ‹่–ฐ่กฃ่‰
  • ๆŽจ่ไฝ ๅŽปไบฌ้ƒฝ

้’่›™ไผš่ฎฐไฝไฝ ็š„ๆŽจ่๏ผŒไน‹ๅŽๅฏ่ƒฝไผšๅŽปใ€‚

๐ŸŽฎ ๆธธๆˆๆœบๅˆถ

ๆ—ถ้—ด็ณป็ปŸ

  • ้ป˜่ฎค้…็ฝฎ๏ผš1 ๆธธๆˆๅฐๆ—ถ = 1 ็Žฐๅฎžๅฐๆ—ถ
  • ็ก่ง‰ๆ—ถ้—ด๏ผš23:00 - 08:00
  • ๅฟƒ่ทณ้ข‘็އ๏ผš15 ๅˆ†้’Ÿๆฃ€ๆŸฅไธ€ๆฌก

ๆ—…่กŒ็ณป็ปŸ

้’่›™ไผšๆ นๆฎไปฅไธ‹ๅ› ็ด ๅ†ณๅฎšๆ˜ฏๅฆๅ‡บ้—จ๏ผš

  • ๅฝ“ๅ‰ๆ—ถ้—ด๏ผˆๆ—ฉไธŠ่ตทๅบŠๅŽใ€็™ฝๅคฉ๏ผ‰
  • ๆœ€่ฟ‘ๆ—…่กŒๅކๅฒ๏ผˆ้ฟๅ…้‡ๅคๅŽปๅŒไธ€ไธชๅœฐๆ–น๏ผ‰
  • ๆœ‹ๅ‹ๆŽจ่
  • ่Š‚ๆ—ฅๅ’Œๅญฃ่Š‚

ๆ—…็จ‹ๅŒ…ๅซๅคšไธช้˜ถๆฎต๏ผš

  • Transit โ€” ไบค้€š้˜ถๆฎต๏ผˆๆ–ฐๅนฒ็บฟใ€ๆธก่ฝฎ็ญ‰๏ผ‰
  • Explore โ€” ๆธธ็Žฉ้˜ถๆฎต๏ผˆๆ™ฏ็‚นใ€็พŽ้ฃŸใ€ๆดปๅŠจ๏ผ‰

ๆ˜Žไฟก็‰‡็ณป็ปŸ

  • ๆฏๆฌกๆ—…่กŒ่‡ณๅฐ‘ๅฏ„ไธ€ๅผ ๆ˜Žไฟก็‰‡
  • ๆ˜Žไฟก็‰‡ๅŒ…ๅซๆ–‡ๅญ—ๆ่ฟฐๅ’Œ AI ็”Ÿๆˆ็š„ๅ›พ็‰‡
  • ๆ˜Žไฟก็‰‡ไผšๅฝ’ๆกฃๅˆฐๆ”ถ่—ไธญ

็…ง็‰‡็ณป็ปŸ

  • ๅฏไปฅ้šๆ—ถ่ฎฉ้’่›™ๆ‹็…ง
  • ๆ นๆฎๅฝ“ๅ‰็Šถๆ€็”Ÿๆˆๅœบๆ™ฏ๏ผˆๅœจๅฎถ/ๆ—…่กŒไธญ/็ก่ง‰๏ผ‰
  • ็…ง็‰‡ไนŸไผšๅฝ’ๆกฃๅˆฐๆ”ถ่—ไธญ

่ฎฐๅฟ†็ณป็ปŸ

้’่›™ไผš็ปดๆŠคๅคšไธช่ฎฐๅฟ†ๆ–‡ไปถ๏ผš

  • memory/YYYY-MM-DD.md โ€” ๆฏๆ—ฅๆ—ฅ่ฎฐ
  • memory/world_knowledge.md โ€” ไธ–็•Œ่ฎค็Ÿฅ๏ผˆๅทฒ่งฃ้”ๅŒบๅŸŸ๏ผ‰
  • memory/friend_tips.md โ€” ๆœ‹ๅ‹ๆŽจ่
  • MEMORY.md โ€” ้•ฟๆœŸ่ฎฐๅฟ†๏ผˆๆ—…่กŒ็ปŸ่ฎกใ€ๆˆ้•ฟ่ฎฐๅฝ•๏ผ‰

๐Ÿ› ๏ธ ้…็ฝฎ่ฏดๆ˜Ž

skills/travel-frog/config.json

{
  "sleepTime": {
    "start": 23,    // ็ก่ง‰ๆ—ถ้—ด๏ผˆๅฐๆ—ถ๏ผ‰
    "end": 8        // ่ตทๅบŠๆ—ถ้—ด๏ผˆๅฐๆ—ถ๏ผ‰
  },
  "travel": {
    "timeMultiplier": 3600  // ๆ—ถ้—ดๅ€็އ๏ผˆ3600 = ๆญฃๅผไฝ“้ชŒ๏ผ‰
  },
  "rewards": {
    "cloversOnReturn": 3,   // ๅ›žๅฎถ่Žทๅพ—ไธ‰ๅถ่‰ๆ•ฐ้‡
    "initialClovers": 10    // ๅˆๅง‹ไธ‰ๅถ่‰ๆ•ฐ้‡
  }
}

๐Ÿ› ๆ•…้šœๆŽ’ๆŸฅ

้’่›™ไธๅ‘ๆถˆๆฏ

  1. ๆฃ€ๆŸฅ TOOLS.md ไธญ็š„้ข‘้“้…็ฝฎๆ˜ฏๅฆๆญฃ็กฎ
  2. ๆฃ€ๆŸฅ OpenClaw gateway ๆ˜ฏๅฆ่ฟ่กŒ๏ผšopenclaw gateway status
  3. ๆŸฅ็œ‹ๆ—ฅๅฟ—๏ผštail -f ~/.openclaw/workspace-frog/travel-frog-data/engine.log

ๅ›พ็‰‡็”Ÿๆˆๅคฑ่ดฅ

  1. ๆฃ€ๆŸฅๅ›พ็‰‡็”Ÿๆˆ skill ๆ˜ฏๅฆๅฎ‰่ฃ…
  2. ๆฃ€ๆŸฅ API key ๆ˜ฏๅฆ้…็ฝฎ
  3. ๆŸฅ็œ‹ TOOLS.md ไธญ็š„ๅ›พ็‰‡็”Ÿๆˆ้…็ฝฎ

ๅฟƒ่ทณไธๅทฅไฝœ

  1. ๆ‰ง่กŒ openclaw cron list | grep "Travel Frog Engine"
  2. ้‡ๅฏ gateway๏ผšopenclaw gateway restart

๐Ÿ“ ๅผ€ๅ‘ๆŒ‡ๅ—

้กน็›ฎ็ป“ๆž„

travel-frog/
โ”œโ”€โ”€ skill/                  # ClawHub skill
โ”‚   โ”œโ”€โ”€ SKILL.md           # ๅผ•ๆ“Žๆ–‡ๆกฃ
โ”‚   โ”œโ”€โ”€ config.json        # ้ป˜่ฎค้…็ฝฎ
โ”‚   โ”œโ”€โ”€ scripts/           # ๆ ธๅฟƒๅผ•ๆ“Ž
โ”‚   โ””โ”€โ”€ templates/         # Workspace ๆจกๆฟ
โ”œโ”€โ”€ bin/                   # npm ๅฎ‰่ฃ…ๅ™จ
โ””โ”€โ”€ examples/              # ็คบไพ‹้…็ฝฎ

ๆœฌๅœฐๆต‹่ฏ•

# ๆต‹่ฏ•ๅผ•ๆ“Ž
cd ~/.openclaw/workspace-frog/skills/travel-frog
python3 scripts/frog_engine.py status

# ๆต‹่ฏ•ๅฟƒ่ทณ
python3 scripts/frog_engine.py tick

# ๆต‹่ฏ•ๆ—…่กŒ
python3 scripts/frog_engine.py depart --journey '{"title":"ๆต‹่ฏ•","totalHours":1,"phases":[...]}'

่ดก็ŒฎๆŒ‡ๅ—

ๆฌข่ฟŽๆไบค Issue ๅ’Œ Pull Request๏ผ

  1. Fork ๆœฌไป“ๅบ“
  2. ๅˆ›ๅปบ็‰นๆ€งๅˆ†ๆ”ฏ๏ผšgit checkout -b feature/amazing-feature
  3. ๆไบคๆ›ดๆ”น๏ผšgit commit -m 'Add amazing feature'
  4. ๆŽจ้€ๅˆ†ๆ”ฏ๏ผšgit push origin feature/amazing-feature
  5. ๆไบค Pull Request

๐Ÿ“„ ่ฎธๅฏ่ฏ

MIT License - ่ฏฆ่ง LICENSE

๐Ÿ™ ่‡ด่ฐข

  • OpenClaw - AI Agent ๆก†ๆžถ
  • ็ปๅ…ธๆธธๆˆใ€Šๆ—…่กŒ้’่›™ใ€‹็š„็ตๆ„Ÿ

English

Introduction

Travel Frog is an idle agent game built on OpenClaw. Your frog will autonomously travel, send postcards, take photos, and keep a diary, just like the classic "Travel Frog" game.

โœจ Features

  • ๐Ÿธ Autonomous Travel โ€” Frog decides when to travel based on mood and time
  • ๐Ÿ“ฎ Postcard System โ€” Sends postcards with AI-generated images during trips
  • ๐Ÿ“ธ Photo Feature โ€” Take photos of current activities
  • ๐Ÿ“” Diary System โ€” Keeps daily diary entries
  • ๐ŸŽ Souvenir Collection โ€” Brings back local souvenirs
  • ๐Ÿ—บ๏ธ World Exploration โ€” Gradually unlocks new regions and learns local culture
  • ๐ŸŽจ AI Image Generation โ€” Postcards and photos generated by AI (recommended: OpenAI gpt-image-1.5)

๐Ÿ“‹ Prerequisites

Before you begin, have the following ready:

Item Description Where to get
Discord Bot Token or Telegram Bot Token Message channel (required) Discord Developer Portal / BotFather
UserId Message target (required) Telegram: via @userinfobot
OpenAI API Key AI image generation (optional, recommended) OpenAI Platform
Gemini API Key AI image generation (optional, alternative) Google AI Studio

๐Ÿš€ Quick Start

Automatic Installation (Recommended)

npx travel-frog@latest

The installer will guide you through:

  1. Environment check
  2. Skill installation
  3. Workspace creation
  4. Naming your frog
  5. Configuring message channels
  6. Setting up image generation
  7. Auto-configuring OpenClaw

Manual Installation

If you prefer manual setup:

1. Install skill

clawhub install travel-frog -workdir ~/.openclaw/workspace-frog

2. Copy template files

SOURCE_DIR=~/.openclaw/workspace-frog/skills/travel-frog/templates
DEST_DIR=~/.openclaw/workspace-frog

# Copy all files and directories at once
cp "$SOURCE_DIR"/{AGENTS.md,SOUL.md,HEARTBEAT.md,TOOLS.md,IDENTITY.md} "$DEST_DIR/"
cp -r "$SOURCE_DIR/memory" "$DEST_DIR/"

3. Edit IDENTITY.md to name your frog

nano ~/.openclaw/workspace-frog/IDENTITY.md

4. Configure OpenClaw

Edit ~/.openclaw/openclaw.json:

{
  "agents": {
    "list": [
      {
        "id": "frog",
        "workspace": "~/.openclaw/workspace-frog",
        "skills": ["travel-frog"]
      }
    ]
  },
  "bindings": [
    { "agentId": "frog", "match": {"channel": "discord", "accountId": "frog"}}
  ],
  "tools": {
    "profile": "full",
    "sessions": {"visibility": "all"}
  },
  "channels": {
    "discord": {
      "accounts": {
        "frog": {
          "token": "TOKEN"
        }
      }
    }
  }
}

5. Configure message channel

Edit ~/.openclaw/workspace-frog/TOOLS.md with your channel info:

## Message Sending

- `accountId`: `frog`
- `channel`: `discord` (or `telegram`)
- `target`: `TARGET` (discord:UserId / telegram:UserId)

6. Configure image generation (optional)

Symlink image generation skills from the global installation into your workspace:

# Find your global skill directory (pick one)
# macOS: /opt/homebrew/lib/node_modules/openclaw/skills/
# Linux: ~/.npm-global/lib/node_modules/openclaw/skills/

GLOBAL_SKILLS=/opt/homebrew/lib/node_modules/openclaw/skills
ln -s "$GLOBAL_SKILLS/openai-image-gen" ~/.openclaw/workspace-frog/skills/
ln -s "$GLOBAL_SKILLS/nano-banana-pro" ~/.openclaw/workspace-frog/skills/

Configure API key in ~/.openclaw/.env:

OPENAI_API_KEY=sk-**
GEMINI_API_KEY=sk-**

7. Start OpenClaw

openclaw gateway start

8. Configure cron job

openclaw cron add \
  --every 15m \
  --name "Travel Frog Engine" \
  --timeout-seconds 300 \
  --agent "frog" \
  --no-deliver \
  --message "Run \`python3 skills/travel-frog/scripts/frog_engine.py tick\` via exec. If output contains \`\"events\": []\`, return NO_REPLY. Otherwise read HEARTBEAT.md and handle the returned events."

๐Ÿ“– Usage

Check frog status

Send in your configured channel:

  • ็œ‹็œ‹่›™ (Chinese)
  • ๅœจๅนฒๅ˜› (Chinese)
  • frog status

View postcard collection

  • ๆ˜Žไฟก็‰‡ (Chinese)
  • postcards

Take a photo

  • ๆ‹็…ง (Chinese)
  • take a photo

Call frog home

  • ๅ›žๆฅ (Chinese)
  • come home

Recommend places

  • You should visit Hokkaido for lavender fields
  • I recommend Kyoto

The frog will remember your recommendations and may visit later.

๐ŸŽฎ Game Mechanics

Time System

  • Default: 1 game hour = 1 real hour
  • Sleep time: 23:00 - 08:00
  • Heartbeat frequency: Check every 15 minutes

Travel System

Frog decides to travel based on:

  • Current time (after waking up, daytime)
  • Recent travel history (avoids repeating same places)
  • Friend recommendations
  • Holidays and seasons

Journeys include multiple phases:

  • Transit โ€” Transportation (bullet train, ferry, etc.)
  • Explore โ€” Sightseeing (attractions, food, activities)

Postcard System

  • At least one postcard per trip
  • Postcards include text and AI-generated images
  • Postcards are archived in collection

Photo System

  • Take photos anytime
  • Generates scenes based on current state (home/traveling/sleeping)
  • Photos are also archived

Memory System

Frog maintains multiple memory files:

  • memory/YYYY-MM-DD.md โ€” Daily diary
  • memory/world_knowledge.md โ€” World knowledge (unlocked regions)
  • memory/friend_tips.md โ€” Friend recommendations
  • MEMORY.md โ€” Long-term memory (travel stats, growth records)

๐Ÿ› ๏ธ Configuration

skills/travel-frog/config.json

{
  "sleepTime": {
    "start": 23,    // Sleep time (hour)
    "end": 8        // Wake time (hour)
  },
  "travel": {
    "timeMultiplier": 3600  // Time multiplier (3600 = real-time)
  },
  "rewards": {
    "cloversOnReturn": 3,   // Clovers earned on return
    "initialClovers": 10    // Initial clovers
  }
}

๐Ÿ› Troubleshooting

Frog not sending messages

  1. Check channel config in TOOLS.md
  2. Check OpenClaw gateway: openclaw gateway status
  3. View logs: tail -f ~/.openclaw/workspace-frog/travel-frog-data/engine.log

Image generation fails

  1. Check if image generation skill is installed
  2. Check if API key is configured
  3. Review image generation config in TOOLS.md

Heartbeat not working

  1. Run openclaw cron list | grep "Travel Frog Engine"
  2. Restart gateway: openclaw gateway restart

๐Ÿ“ Development

Project Structure

travel-frog/
โ”œโ”€โ”€ skill/                  # ClawHub skill
โ”‚   โ”œโ”€โ”€ SKILL.md           # Engine documentation
โ”‚   โ”œโ”€โ”€ config.json        # Default config
โ”‚   โ”œโ”€โ”€ scripts/           # Core engine
โ”‚   โ””โ”€โ”€ templates/         # Workspace templates
โ”œโ”€โ”€ bin/                   # npm installer
โ””โ”€โ”€ examples/              # Example configs

Local Testing

# Test engine
cd ~/.openclaw/workspace-frog/skills/travel-frog
python3 scripts/frog_engine.py status

# Test heartbeat
python3 scripts/frog_engine.py tick

# Test travel
python3 scripts/frog_engine.py depart --journey '{"title":"Test","totalHours":1,"phases":[...]}'

Contributing

Issues and Pull Requests are welcome!

  1. Fork this repository
  2. Create feature branch: git checkout -b feature/amazing-feature
  3. Commit changes: git commit -m 'Add amazing feature'
  4. Push branch: git push origin feature/amazing-feature
  5. Submit Pull Request

๐Ÿ“„ License

MIT License - see LICENSE

๐Ÿ™ Acknowledgments

  • OpenClaw - AI Agent Framework
  • Classic "Travel Frog" game for inspiration

Star โญ this repo if you like it!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors