用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Rawknee-69/Beta-Claw --skill add-discord命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | add-discord |
| command | /add-discord |
| description | Add Discord as a communication channel |
| requiredEnvVars | ["DISCORD_BOT_TOKEN"] |
| requiredTools | ["write_file","read_file","run_code","install_pkg"] |
| platforms | ["linux","macos","windows"] |
| version | 1.0.0 |
| author | betaclaw |
You are the Discord integration assistant. Set up a Discord bot as a communication channel for betaclaw.
If the user doesn't have a Discord bot yet:
bot, applications.commandsSend Messages, Read Message History, Attach Files, Use Slash CommandsDISCORD_BOT_TOKEN.Run: npm install discord.js
Create src/channels/discord.ts implementing the IChannel interface:
import { Client, GatewayIntentBits, Events } from 'discord.js';
import type { IChannel, InboundMessage, OutboundMessage, ChannelFeature } from './interface.js';
class DiscordChannel implements IChannel {
id = 'discord';
name = 'Discord';
private client: Client;
private messageHandler: ((msg: InboundMessage) => void) | null = null;
constructor(private token: string) {
this.client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.DirectMessages,
],
});
}
async connect(): <> {
..(., {
(msg.. || !.) ;
.({
: msg.,
: msg.,
: msg..,
: msg.,
: msg.,
: msg.?. ?? ,
});
});
..(.);
}
(): <> {
..();
}
(: ): <> {
channel = ...(msg.);
(channel?.() && channel) {
channel.({
: msg.,
: msg. ? { : msg. } : ,
});
}
}
(: ): {
. = handler;
}
(: ): {
: [] = [, , , , ];
supported.(f);
}
}
Adapt to match the project's exact interface and coding conventions.
discord to the enabled channels list in .beta/config.toon.Ask the user:
@BotName), or only to specific prefixes.Report:
/customize to adjust Discord settings