【脚本】在 QQ 发送系统提示
最近 QQ 又可以发送系统提示了,如图
还是发送 Pb 包实现的
这是一个来自天如大佬写的 Trss-Yunzai 发送 Pb 包的插件
使用 NapCat + TrssYunzai 使用这个插件,就可以在你的 QQ 里发送系统提示了喵!ww
在任意一个机器人所在群发送 #hz内容就可以得到一个 “内容” 的系统提示 #hz 和内容之间没有空格
由于大佬的版本是需要在发送灰字所在群发送云崽指令,很不美观(骗不到人)
我基于这个版本弄了一个二改版本(
在任意群内发送 #hz 内容 群号可以把灰字发送到指定群内(需要机器人在群)
二改
import plugin from '../../lib/plugins/plugin.js' export class GreyText extends plugin {
constructor () {
super({
name: '灰字发送',
dsc: 'Raw PB 灰字(指定群)',
event: 'message',
priority: 500,
rule: [
{
reg: '^#hz\\s+(.+?)\\s+(\\d+)$',
fnc: 'sendGrey'
}
]
})
}
async sendGrey (e) {
const match = e.msg.match(/^#hz\s+(.+?)\s+(\d+)$/)
if (!match) return const content = match[1]
const groupId = Number(match[2])
/** 灰字 PB(保持原可用结构,仅替换必要字段) */ const packet = {
25: {
1: {
1: 11,
50: "3573715425",
20: {
2: ,
3: ,
4:
},
5: 8,
0: {
1: 1
},
28: {
1: 2,
2: content,
3: ,
4: {
1: "",
2: 0
}
},
30: 2,
14: 1
}
}
}
await Packet.Long(
{
...e,
group_id: groupId
},
packet
)
return true
}
}
请注意,这个版本并没有写鉴权,建议修改触发指令
请合理使用,不要拿来刷屏哦,只要安装模块或者使用 NapCat 还是可以看见发送者的 ww!
坏喵喵

评论区(暂无评论)