界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

feishu-sticker

feishu-sticker

【开发与工程】Send images as native Feishu stickers. Features auto-upload, caching, and GIF-to-WebP conversion.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: feishu-sticker description: Send images as native Feishu stickers. Features auto-upload, caching, and GIF-to-WebP conversion. tags: [feishu, lark, sticker, image, fun]

Feishu Sticker Skill

Sends a sticker (image) to a Feishu user or group. Automatically uploads the image to Feishu (caching the image_key via MD5), converts GIFs to WebP for efficiency, and supports smart search.

Features

  • Auto-Upload: Uploads local images to Feishu CDN on demand.
  • Caching: Caches image_key by file hash to avoid re-uploading.
  • Optimization: Auto-converts GIFs to WebP (via ffmpeg-static) and compresses large images (>5MB).
  • Smart Search: Find stickers by --query or --emotion.

Usage

# Send random sticker
node skills/feishu-sticker/send.js --target "ou_..."

# Send specific file
node skills/feishu-sticker/send.js --target "ou_..." --file "/path/to/image.jpg"

# Search and send
node skills/feishu-sticker/send.js --target "ou_..." --query "angry cat"
node skills/feishu-sticker/send.js --target "ou_..." --emotion "happy"

Setup

  1. Put your stickers in ~/.openclaw/media/stickers/ (or set STICKER_DIR).
  2. Install dependencies: npm install (requires axios, commander, ffmpeg-static, form-data, dotenv).
我的收藏