Mirai-Repeater:复读机插件:复读/打断/跟读
-
可以在Release下载
UPDATE:v1.7已发布
功能
- 全程复读:每一句话都复读一次
- 跟风复读:其他人复读时在指定位置复读
- 复读打断:自动打断施法
命令用法
以README为准
所有命令以
repeater_configure
(或rep_conf
/repconf
)开头- /repeater_configure repstart <配置上下文> # 开启全程复读
- /repeater_configure repstop <配置上下文> # 关闭全程复读
- /repeater_configure repunset <配置上下文> # 重置全程复读开关状态
- /repeater_configure chainstart <配置上下文> # 开启跟风复读
- /repeater_configure chainstop <配置上下文> # 关闭跟风复读
- /repeater_configure chainunset <配置上下文> # 重置跟风复读开关状态
- /repeater_configure chainplaces <配置上下文> # 列出所有跟风复读位置
- /repeater_configure chainplaceadd <配置上下文> <位置: Int> # 添加跟风复读位置
- /repeater_configure chainplaceremove <配置上下文> <位置: Int> # 移除跟风复读位置
- /repeater_configure killchainstart <配置上下文> # 开启复读打断
- /repeater_configure killchainstop <配置上下文> # 关闭复读打断
- /repeater_configure killchainunset <配置上下文> # 重置复读打断开关状态
- /repeater_configure killchainat <配置上下文> # 查看复读打断位置
- /repeater_configure killchainat <配置上下文> <位置: Int> # 设置复读打断位置
- /repeater_configure killchainatunset <配置上下文> # 重置复读打断位置
- /repeater_configure killchainwith <配置上下文> # 查看复读打断方式
- /repeater_configure killchainwith <配置上下文> <语句: String> # 设置复读打断方式
- /repeater_configure killchainwithunset <配置上下文> 重置复读打断方式
配置上下文
配置上下文 可以直接是一个QQ群的群号,也可以用
global
选择全局配置或this
选中本群(仅通过群聊控制时有效)。Tip
-
仅对群聊有效。
-
对Bot自身发出的消息无效,计数器也不会计算。
-
复读位置为0时不会生效、
-
所有参数重置后会进入
UNSET
状态并使用全局状态,跟随全局状态变更。全局参数重置后,开关状态的效果与打开一样,但位置重置后,效果与0一样,不会生效,复读打断方式重置后也不会生效(指相当于功能关闭)。
-
此回复已被删除! -
好像只能英文不可以是中文?
-
@saikewei 指令没有中文,复读可以复读中文
-
我测试中文复读不出来是怎么回事呢
-
而且英文字符也有长度限制 三个字就没了
-
@saikewei ???????发下配置和日志
-
@xtexchooser ```
[0m2021-08-17 20:14:33 V/Net 1144721548: Loading server list from cache.[0m
[92m2021-08-17 20:14:33 I/Net 1144721548: Server list: 120.232.19.197:8080, 120.232.18.27:8080, 36.155.229.208:14000, msfwifi.3g.qq.com:8080, 120.232.19.182:443, 111.30.178.75:80, 111.30.179.153:80, 111.30.181.201:80, 36.155.228.147:14000, 36.155.229.173:80.[0m
[92m2021-08-17 20:14:33 I/Net 1144721548: ECDH key is valid.[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Send: wtlogin.exchange_emp[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Recv: wtlogin.exchange_emp[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Send: StatSvc.register(online)[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Recv: StatSvc.register[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Loading BdhSession from cache file[0m
[92m2021-08-17 20:14:33 I/Net 1144721548: Syncing friend message history...[0m
[92m2021-08-17 20:14:33 I/Net 1144721548: Start loading friend list...[0m
[92m2021-08-17 20:14:33 I/Net 1144721548: Start loading stranger list...[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Send: StatSvc.GetDevLoginInfo(StatSvc.GetDevLoginInfo)[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Send: OidbSvc.0x496(OidbSvc.0x496)[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Send: OidbSvc.0x5d2_0(OidbSvc.0x5d2_0)[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Send: friendlist.getFriendGroupList(friendlist.getFriendGroupList)[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Recv: OidbSvc.0x496[0m
[92m2021-08-17 20:14:33 I/Net 1144721548: Start loading group list...[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Send: friendlist.GetTroopListReqV2(friendlist.GetTroopListReqV2)[0m
[92m2021-08-17 20:14:33 I/Net 1144721548: Syncing friend message history: Success.[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Recv: StatSvc.GetDevLoginInfo[0m
[92m2021-08-17 20:14:33 I/Net 1144721548: No OtherClient online.[0m
[0m2021-08-17 20:14:33 V/Net 1144721548: Recv: OidbSvc.0x5d2_0[0m
[92m2021-08-17 20:14:33 I/Net 1144721548: Successfully loaded stranger list: 1 in total[0m
[0m2021-08-17 20:14:34 V/Net 1144721548: Recv: friendlist.getFriendGroupList[0m
[0m2021-08-17 20:14:34 V/Net 1144721548: Loading friend list: 39/39[0m
[92m2021-08-17 20:14:34 I/Net 1144721548: Successfully loaded friend list: 39 in total[0m
[0m2021-08-17 20:14:34 V/Net 1144721548: Recv: friendlist.GetTroopListReqV2[0m
[0m2021-08-17 20:14:34 V/Net 1144721548: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq)[0m
[0m2021-08-17 20:14:34 V/Net 1144721548: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq)[0m
[0m2021-08-17 20:14:34 V/Net 1144721548: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq)[0m
[0m2021-08-17 20:14:34 V/Net 1144721548: Recv: friendlist.GetTroopMemberListReq[0m
[0m2021-08-17 20:14:34 V/Net 1144721548: Recv: friendlist.GetTroopMemberListReq[0m
[0m2021-08-17 20:14:34 V/Net 1144721548: Recv: friendlist.GetTroopMemberListReq[0m
[92m2021-08-17 20:14:34 I/Net 1144721548: Successfully loaded group list: 3 in total.[0m
[92m2021-08-17 20:14:34 I/Net 1144721548: Scheduled key refresh in 23h 55min 0.0s.[0m
[92m2021-08-17 20:14:34 I/Net 1144721548: Scheduled refresh login session in 19d 23h 55min 0.0s.[0m
[0m2021-08-17 20:14:36 V/Net 1144721548: Recv: ConfigPushSvc.PushReq[0m
[92m2021-08-17 20:14:36 I/Net 1144721548: Server list: 113.96.13.79:8080, 42.81.169.100:443, 42.81.184.75:80, 42.81.172.207:443, 113.96.12.27:443, 125.94.60.175:14000, 180.102.110.114:8080, 114.221.144.89:80, msfwifi.3g.qq.com:8080, 180.109.156.246:443.[0m
[0m2021-08-17 20:14:36 V/Net 1144721548: Saving bdh session to cache[0m
[0m2021-08-17 20:14:36 V/Net 1144721548: Saving server list to cache[0m
[0m2021-08-17 20:14:36 V/Net 1144721548: Recv: ConfigPushSvc.PushReq[0m
[0m2021-08-17 20:14:36 V/Net 1144721548: Send: ConfigPushSvc.PushResp(ConfigPushSvc.PushResp)[0m
[0m2021-08-17 20:14:36 V/Net 1144721548: Saving bdh session to cache[0m
[0m2021-08-17 20:14:36 V/Net 1144721548: Send: ConfigPushSvc.PushResp(ConfigPushSvc.PushResp)[0m
[0m2021-08-17 20:14:44 V/Net 1144721548: Send: MessageSvc.PbSendMsg(MessageSvc.PbSendMsg)[0m
[0m2021-08-17 20:14:44 V/Net 1144721548: Recv: MessageSvc.PbSendMsg[0m
[0m2021-08-17 20:14:45 V/Net 1144721548: Send: MessageSvc.PbSendMsg(MessageSvc.PbSendMsg)[0m
[0m2021-08-17 20:14:45 V/Net 1144721548: Recv: MessageSvc.PbSendMsg[0m
[0m2021-08-17 20:14:54 V/Net 1144721548: Send: MessageSvc.PbSendMsg(MessageSvc.PbSendMsg)[0m
[0m2021-08-17 20:14:54 V/Net 1144721548: Recv: MessageSvc.PbSendMsg[0m
[0m2021-08-17 20:15:01 V/Net 1144721548: Send: MessageSvc.PbSendMsg(MessageSvc.PbSendMsg)[0m
[0m2021-08-17 20:15:01 V/Net 1144721548: Recv: MessageSvc.PbSendMsg[0m -
草,这是什么,Mirai Console吗,日志好短,配置发下
-
-
@xtexchooser {
"js_optimization_level": -1,
"mirai_repo": "https://gitee.com/peratx/mirai-repo/raw/master",
"maven_repo": [
"https://maven.aliyun.com/repository/public"
],
"packages": [
{
"id": "net.mamoe:mirai-console",
"channel": "beta",
"version": "2.7-RC",
"type": "libs",
"versionLocked": false
},
{
"id": "net.mamoe:mirai-console-terminal",
"channel": "beta",
"version": "2.7-RC",
"type": "libs",
"versionLocked": false
},
{
"id": "net.mamoe:mirai-core-all",
"channel": "beta",
"version": "2.7-RC",
"type": "libs",
"versionLocked": false
},
{
"id": "org.itxtech:mcl-addon",
"channel": "c122",
"version": "1.2.2",
"type": "plugins",
"versionLocked": false
},
{
"id": "net.mamoe:mirai-api-http",
"channel": "stable",
"version": "1.10.0",
"type": "plugins",
"versionLocked": false
},
{
"id": "net.mamoe:chat-command",
"channel": "stable",
"version": "0.5.1",
"type": "plugins",
"versionLocked": false
}
],
"disabled_scripts": [],
"proxy": "",
"log_level": 1,
"script_props": {}
} -
然后呢,你got发了几次,我说的是复读机的配置
-
你那个日志怕是网络日志,请发mirai日志
-
{
"repeater_state": false,
"chain_state": true,
"chain_places": [
5,
4
],
"kill_chain_state": true,
"kill_chain_at": 0,
"kill_chain_with": "打断施法"
} -
@xtexchooser mirai日志是存在哪个路径呢
-
@saikewei 1. 跟读似乎是正常的,你发0可以正常跟读,5和4连起来没有意义,因为Bot自己发出的消息不算
2.你没设置kill chain at(/repconf killchainat 2),不然开启了killchain功能也没用 -
@xtexchooser
killchain是我随手开的 现已关闭
跟读位置仅设置为4
还是两个字可以三个便不行 -
这个有点奇怪,从Mirai的日志来看:(图片URL:https://z3.ax1x.com/2021/08/17/f5bwBF.png)
三个a也是有发送的,插件做出了响应发送,并且mirai日志没有显示异常便成功发送了,可能是QQ的问题?我这里没问题
你试试用别的插件发送点文字?
-
换了个qq号就奇迹般地好了 真奇怪
-
@saikewei 可能那个号被风控了吧....