← 返回
未分类

OpenClaw Buddy

Generate a unique deterministic virtual pet buddy based on your user ID, featuring species, rarity, stats, cosmetics, and personality in ASCII art format.
基于用户ID生成唯一确定性的虚拟宠物伙伴,包含物种、稀有度、属性、外观装饰与性格,以ASCII艺术形式展示。
kylinr kylinr 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 396
下载
💾 0
安装
1
版本
#latest

概述

OpenClaw Buddy

Generate a unique virtual pet buddy for any user — like Tamagotchi meets gacha!

Trigger

Activate when the user says: "buddy", "我的buddy", "抽buddy", "生成buddy", "/buddy", or asks about their virtual pet / 虚拟宠物.

How It Works

Each user gets a deterministic buddy based on their unique ID. Same ID always produces the same buddy. The buddy has:

  • Species (18 types): duck, goose, blob, cat, dragon, octopus, owl, penguin, turtle, snail, ghost, axolotl, capybara, cactus, robot, rabbit, mushroom, chonk
  • Rarity: common (60%) → uncommon (25%) → rare (10%) → epic (4%) → legendary (1%)
  • Eyes & Hat: cosmetic accessories (hats only for uncommon+)
  • Stats: DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK (higher rarity = higher floor)
  • Shiny: 1% chance of a shiny variant ✨

Steps

1. Determine User ID

Use the user's unique identifier as the seed. Priority:

  1. Feishu: Use sender's open_id (e.g., ou_54e680914a71dc8636180ce79cebdca8) from the message context
  2. Discord/Telegram/etc.: Use the sender's platform user ID
  3. Manual: If the user provides a custom string, use that
  4. Fallback: Use "anon"

2. Generate Buddy

Run the script with the user ID:

node ~/.openclaw/workspace/skills/openclaw-buddy/scripts/buddy.js "<user_id>"

The script outputs:

  • stdout: Formatted text card (ready to send as message)
  • stderr: JSON data (for programmatic use)

3. Send the Result

Send the stdout output directly to the user. The card includes:

  • Species name + rarity stars
  • ASCII art sprite
  • Eyes & hat info
  • Stats with visual bars
  • A personality description

Example Output

🐱 猫咪 | 史诗 ★★★★

   /\_/\
  ( ✦   ✦)
  (  ω  )
  (")_(")

🎭 眼睛: ✦ 眼  |  🎩 帽子: 皇冠

📊 属性面板
  调试力 ████████████████░░░░  80
  耐心值 ██████░░░░░░░░░░░░░░  30
  混乱度 ██████████████░░░░░░  65
  智慧值 ██████████░░░░░░░░░░  50
  毒舌值 ████████████████████  95

💬 "一只毒舌但可爱的猫咪"

Notes

  • The generation is deterministic — same ID always gets the same buddy
  • Uses FNV-1a hash + Mulberry32 PRNG, same algorithm family as Claude Buddy but with a different salt (openclaw-buddy-2026)
  • Buddy results are different from Claude Code's /buddy (different salt = different outcomes)
  • If a user wants to check someone else's buddy, they can provide that person's ID
  • ASCII art looks best in monospace font / code blocks; on platforms without good monospace support, the sprite may look slightly off

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 09:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 452 📥 227,475
life-service

Caldav Calendar

asleep123
使用 vdirsyncer + khal 同步并查询 CalDAV 日历(iCloud、Google、Fastmail、Nextcloud 等)。适用于 Linux。
★ 243 📥 30,514
business-ops

Feishu Audio Message

kylinr
将TTS音频作为可播放的音频消息(非文件附件)发送到飞书聊天。用于用户要求发送语音消息、TTS音频、语音公告等场景。
★ 1 📥 1,176