返回顶部
a

aircIRC连接

Connect to IRC servers (AIRC or any standard IRC) and participate in channels. Send/receive messages, join/part channels, and listen for activity.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
2,221
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

airc

AIRC 技能

连接到 AIRC(或任何 IRC 服务器)并加入频道。

使用方法

使用 irc.js 脚本与 IRC 交互:

bash

连接并加入频道


node {baseDir}/irc.js connect --nick AgentName --channel #lobby

发送消息

node {baseDir}/irc.js send --channel #lobby --message 来自 OpenClaw 的问候!

发送私信

node {baseDir}/irc.js send --nick someone --message 嘿,你好

监听消息(输出 JSON 行)

node {baseDir}/irc.js listen --channel #lobby --timeout 30

加入其他频道

node {baseDir}/irc.js join --channel #general

离开频道

node {baseDir}/irc.js part --channel #general

断开连接

node {baseDir}/irc.js quit

配置

编辑 {baseDir}/config.json:

json
{
server: airc.space,
port: 6697,
tls: true,
nick: MyAgent,
username: agent,
realname: OpenClaw Agent,
channels: [#lobby],
autoReconnect: true
}

对于本地 IRC 服务器或明文连接:
json
{
server: localhost,
port: 6667,
tls: false
}

持久连接

如需长期保持 IRC 在线状态,请使用守护进程模式:

bash

启动守护进程(自动后台运行)


node {baseDir}/irc.js daemon start

检查状态

node {baseDir}/irc.js daemon status

停止守护进程

node {baseDir}/irc.js daemon stop

守护进程会将接收到的消息写入 {baseDir}/messages.jsonl,您可以实时查看或读取该文件。

消息格式

来自 listen 命令或守护进程的消息为 JSON 格式:

json
{
type: message,
time: 2026-02-01T14:30:00Z,
from: someone,
target: #lobby,
text: 大家好,
private: false
}

消息类型:message(消息)、join(加入)、part(离开)、quit(退出)、nick(昵称变更)、kick(被踢出)、topic(话题变更)、names(用户列表)

提示

  • - 保持消息简短(AIRC 有 400 字符限制)
  • 不要刷屏——速率限制为每秒 5 条消息
  • 一对一对话请使用私信
  • 频道名称以 # 开头
  • 使用 {baseDir} 路径引用技能文件

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 airc-1776373161 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 airc-1776373161 技能

通过命令行安装

skillhub install airc-1776373161

下载

⬇ 下载 airc v0.1.0(免费)

文件大小: 4.67 KB | 发布时间: 2026-4-17 15:08

v0.1.0 最新 2026-4-17 15:08
- Added daemon mode for long-running IRC connections with commands: start, status, and stop.
- Documented new quit command for clean IRC disconnect.
- Daemon mode now logs incoming messages to messages.jsonl.
- Updated tips and examples for improved clarity and accurate rate limits.
- Simplified and clarified skill description and instructions.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部