Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

skylv-cross-platform-bot-builderskylv 跨平台机器人构建器

Agent Skill

skylv-cross-platform-bot-builder 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,816

周安装

159

GitHub Stars

公开资料未说明

下载量

1,272
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:skylv-cross-platform-bot-builder(skylv 跨平台机器人构建器)
来源仓库:https://github.com/sky-lv/skylv-cross-platform-bot-builder
安装命令:
openclaw skills install skylv-cross-platform-bot-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install skylv-cross-platform-bot-builder

简介

跨平台Bot生成器。一键生成Telegram/微信/音音/Discord Bot,统一API,多平台配置。触发:bot builder、telegram bot、wechat bot、discord bot、多平台bot。

SKILL.md

name
cross-platform-bot-builder
slug
skylv-cross-platform-bot-builder
version
1.0.2
description
Cross-platform Bot generator. One-command Telegram/WeChat/Discord Bot creation with unified API and multi-platform deployment. Triggers: telegram bot, discord bot, wechat bot, bot builder.
author
SKY-lv
license
MIT
tags
[bot, telegram, wechat, discord, cross-platform, automation]
keywords
openclaw, skill, automation, ai-agent
triggers
cross platform bot builder

Cross-Platform Bot Builder — 跨平台 Bot 生成器

功能说明

一键生成 Telegram、微信、抖音、Discord 等多平台 Bot,统一 API 接口,一次开发,多平台部署。支持消息处理、命令响应、媒体发送、用户管理等功能。

支持平台

平台消息命令媒体支付状态
Telegram完全支持
Discord完全支持
微信公众号完全支持
企业微信完全支持
抖音完全支持
Slack完全支持
WhatsApp测试中

快速开始

方式一:CLI 创建

# 创建新 Bot 项目
npx bot-builder create my-bot

# 选择平台
? Select platforms:
  ◉ Telegram
  ◉ Discord
  ◉ WeChat
  ◉ Douyin

# 生成项目结构
my-bot/
├── src/
│   ├── handlers/
│   │   ├── message.js
│   │   ├── command.js
│   │   └── event.js
│   ├── adapters/
│   │   ├── telegram.js
│   │   ├── discord.js
│   │   └── wechat.js
│   └── index.js
├── config/
│   └── platforms.json
├── .env
└── package.json

方式二:代码创建

const { BotBuilder } = require('@skylv/bot-builder');

const bot = new BotBuilder({
  name: 'my-assistant',
  platforms: ['telegram', 'discord', 'wechat']
});

// 添加消息处理器
bot.onMessage(async (ctx) => {
  await ctx.reply(`收到:${ctx.message.text}`);
});

// 添加命令处理器
bot.onCommand('/start', async (ctx) => {
  await ctx.reply('欢迎使用!');
});

// 部署到多平台
await bot.deploy();

方式三:配置文件

# bot.yaml
name: my-assistant
version: 1.0.0

platforms:
  telegram:
    enabled: true
    token: ${TELEGRAM_BOT_TOKEN}
    webhook: https://your-domain.com/telegram/webhook
  
  discord:
    enabled: true
    token: ${DISCORD_BOT_TOKEN}
    intents:
      - GUILD_MESSAGES
      - DIRECT_MESSAGES
  
  wechat:
    enabled: true
    appId: ${WECHAT_APP_ID}
    appSecret: ${WECHAT_APP_SECRET}
    token: ${WECHAT_TOKEN}

handlers:
  - type: message
    pattern: ".*"
    handler: ./src/handlers/message.js
  
  - type: command
    commands: ["/start", "/help"]
    handler: ./src/handlers/command.js

统一 API

消息处理

// 统一消息上下文
{
  platform: 'telegram',
  userId: '123456',
  chatId: 'chat_789',
  message: {
    type: 'text',  // text|image|voice|video|document
    content: 'Hello',
    timestamp: 1234567890
  },
  user: {
    id: '123456',
    name: '张三',
    avatar: 'https://...'
  }
}

// 统一回复接口
ctx.reply('文本消息')
ctx.replyImage(imageUrl)
ctx.replyVoice(audioUrl)
ctx.replyVideo(videoUrl)
ctx.replyDocument(fileUrl)

命令处理

// 命令注册
bot.command('/start', async (ctx) => {
  await ctx.reply('欢迎!使用 /help 查看帮助');
});

bot.command('/help', async (ctx) => {
  const helpText = `
可用命令:
/start - 开始
/help - 帮助
/settings - 设置
`;
  await ctx.reply(helpText);
});

// 命令参数解析
bot.command('/search <query>', async (ctx) => {
  const { query } = ctx.args;
  const results = await search(query);
  await ctx.reply(JSON.stringify(results));
});

事件处理

// 用户事件
bot.onEvent('user.joined', async (ctx) => {
  await ctx.reply(`欢迎 ${ctx.user.name}!`);
});

bot.onEvent('user.left', async (ctx) => {
  console.log(`${ctx.user.name} 离开了`);
});

// 消息事件
bot.onEvent('message.edited', async (ctx) => {
  console.log('消息被编辑了');
});

bot.onEvent('message.deleted', async (ctx) => {
  console.log('消息被删除了');
});

平台适配器

Telegram Adapter

const telegram = require('./adapters/telegram');

telegram.init({
  token: process.env.TELEGRAM_BOT_TOKEN,
  webhook: {
    url: 'https://your-domain.com/telegram/webhook',
    port: 8443
  }
});

// 特有功能
telegram.sendPoll({
  chatId,
  question: '你喜欢什么?',
  options: ['A', 'B', 'C'],
  multiple: false
});

telegram.sendLocation({
  chatId,
  latitude: 39.9,
  longitude: 116.4
});

Discord Adapter

const discord = require('./adapters/discord');

discord.init({
  token: process.env.DISCORD_BOT_TOKEN,
  intents: ['GUILD_MESSAGES', 'DIRECT_MESSAGES']
});

// 特有功能
discord.createEmbed({
  title: '标题',
  description: '描述',
  color: 0x00AE86,
  fields: [
    { name: '字段 1', value: '值 1' },
    { name: '字段 2', value: '值 2' }
  ]
});

discord.addReaction({
  messageId,
  emoji: '👍'
});

微信 Adapter

const wechat = require('./adapters/wechat');

wechat.init({
  appId: process.env.WECHAT_APP_ID,
  appSecret: process.env.WECHAT_APP_SECRET,
  token: process.env.WECHAT_TOKEN,
  encodingAESKey: process.env.WECHAT_AES_KEY
});

// 特有功能
wechat.sendTemplateMessage({
  toUser: userId,
  templateId: 'TEMPLATE_ID',
  data: {
    first: { value: '您好' },
    keyword1: { value: '订单完成' },
    remark: { value: '感谢使用' }
  }
});

wechat.createQRCode({
  sceneId: '123',
  expireSeconds: 2592000
});

部署方案

Docker 部署

FROM node:20-alpine

WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production

COPY . .

EXPOSE 8443

CMD ["node", "src/index.js"]
# 构建镜像
docker build -t my-bot .

# 运行容器
docker run -d \
  --name my-bot \
  -p 8443:8443 \
  -e TELEGRAM_BOT_TOKEN=xxx \
  -e DISCORD_BOT_TOKEN=xxx \
  my-bot

Serverless 部署

# vercel.json
{
  "version": 2,
  "builds": [
    { "src": "src/index.js", "use": "@vercel/node" }
  ],
  "routes": [
    { "src": "/telegram/webhook", "dest": "src/index.js" },
    { "src": "/discord/webhook", "dest": "src/index.js" },
    { "src": "/wechat/webhook", "dest": "src/index.js" }
  ]
}
# 部署到 Vercel
vercel deploy

工具函数

create_bot

def create_bot(name: str, platforms: list, config: dict) -> dict:
    """
    创建 Bot 项目
    
    Args:
        name: Bot 名称
        platforms: 平台列表
        config: 配置字典
    
    Returns:
        {
            "project_path": "/path/to/my-bot",
            "files_created": [...],
            "next_steps": ["配置 Token", "部署 webhook", "启动服务"]
        }
    """

deploy_to_platform

def deploy_to_platform(platform: str, bot_config: dict) -> dict:
    """
    部署到指定平台
    
    Args:
        platform: 平台名称
        bot_config: Bot 配置
    
    Returns:
        {
            "status": "success",
            "webhook_url": "https://...",
            "test_message": "发送测试消息"
        }
    """

analyze_bot_performance

def analyze_bot_performance(bot_id: str, time_range: str = "24h") -> dict:
    """
    分析 Bot 性能
    
    Args:
        bot_id: Bot ID
        time_range: 时间范围
    
    Returns:
        {
            "total_messages": 10000,
            "active_users": 500,
            "avg_response_time": 0.5,
            "error_rate": 0.01,
            "platform_breakdown": {...}
        }
    """

相关文件

触发词

  • 自动:检测 bot、telegram、wechat、discord、cross-platform 相关关键词
  • 手动:/bot-builder, /create-bot, /multi-platform-bot
  • 短语:创建 Bot、Telegram Bot、微信 Bot、跨平台 Bot

Usage

  1. Install the skill
  2. Configure as needed
  3. Run with OpenClaw

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

74.81%
按下载量换算952

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills