小红书直播间自动发评论hamibot平台下autojs脚本
这是一个用于小红书直播间的自动发送评论的脚本,可以帮助你在直播间自动循环发送预设的评论内容。
联系微信:llike620
网址:gofly.v1kf.com
主要特点
- 自动循环发送:脚本会循环发送你预设的所有评论内容
- 可配置间隔:可以设置每条评论之间的发送间隔时间
- 休息机制:每轮评论发送完毕后可以设置休息时间
使用方法
- 安装Hamibot或其他支持Auto.js脚本的运行环境
-
配置脚本参数:
- 发送评论间隔(秒):设置每条评论之间的时间间隔
- 每轮评论休息时间(秒):设置一轮评论发送完后的休息时间
- 评论内容:输入你想要发送的评论,每行一条
- 打开小红书直播间
- 运行脚本
index.js
// 小红书直播刷评脚本
// 20250714
auto.waitFor();
const { loopSecond,loopBreak,commentText } = hamibot.env;
let comments=commentText.split("\n");
console.show();
function deepCopy(obj) {
return JSON.parse(JSON.stringify(obj));
}
let queue=deepCopy(comments);
while(true){
if(queue.length==0){
queue=deepCopy(comments);
console.log("休息:"+loopBreak);
sleep(loopBreak*1000);
}
comment=queue.shift();
if(desc("评论输入框").exists()){
let position=desc("评论输入框").findOne().bounds();
click(position.centerX(), position.centerY());
sleep(1000)
}
if(className("EditText").exists()){
console.log("发送:"+comment);
className("EditText").setText(comment);
}
if(text("发送").exists()){
text("发送").findOne().click();
}
console.log("间隔:"+loopSecond);
sleep(loopSecond*1000);
}
配置模式
[
{
"name": "loopSecond",
"type": "text",
"label": "发送评论间隔(秒)",
"validation": "required",
"help": ""
},
{
"name": "loopBreak",
"type": "text",
"label": "每轮评论休息时间(秒)",
"validation": "required",
"help": ""
},
{
"name": "commentText",
"type": "textarea",
"label": "评论内容(一行一条)",
"validation": "required",
"help": ""
}
]
十年开发经验程序员,离职全心创业中,历时三年开发出的产品《唯一客服系统》
一款基于Golang+Vue开发的在线客服系统,软件著作权编号:2021SR1462600。一套可私有化部署的网站在线客服系统,编译后的二进制文件可直接使用无需搭开发环境,下载zip解压即可,仅依赖MySQL数据库,是一个开箱即用的全渠道在线客服系统,致力于帮助广大开发者/公司快速部署整合私有化客服功能。
开源地址:唯一客服(开源学习版)
官网地址:唯一客服官网
浙公网安备 33010602011771号