360 Secure SkillHub
360 安全技能中心

feishu-sticker

核心功能:自动上传本地图片至飞书CDN,按文件哈希缓存image_key避免重复上传;自动将GIF转WebP、压缩5MB以上大图片;支持按关键词或情绪智能搜索贴纸。典型场景:给指定飞书用户/群组发送随机贴纸、特定图片,或按关键词/情绪搜索发送。通过命令行参数指定目标、文件路径等输入,输出为飞书端的原生贴纸,需提前配置贴纸目录并安装依赖。

autogame-17
autogame-17
热度 84.44
最近更新 2026-05-20 03:35:38
分类:自动化依赖:代码执行 / 第三方 API / 读写文件应用场景:自动化脚本 / 文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add feishu-sticker
Metadata
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).