额,能不能直接改mirai那个脚本把cd 加进去(虽然已经改用docker了)
G
greenhandzdl 发布的最新帖子
-
理论上可行的白嫖方式
项目地址
已经可用,注意以下两种跟直接git拉下来没有任何区别,仅仅保证短期可用(不可用因素:MCL出新版本了),各个在各自的branch下面分别有readme
白嫖脚本
本地构建
注意:机器人服务是okteto服务条款拒绝的一项,目前本人帐户还没有挂,但入坑需要谨慎,下一步可能会默认整个cqhttp来假装整了个网站(网站是合法的) -
RE: Linux小白一名,请教一下如何让MCL开机自启?设置为service启动失败。
@剑客黑羽 大佬还在吗?我想问下具体怎么配置
每次启动都会failed[root@localhost]~# cat /usr/lib/systemd/system/mirai.service [Service] Description=Mirai QQ Bot After=multi-user.target [Service] Type=idle ExecStart=java -jar /root/MCL/mcl.jar [Install] WantedBy=multi-user.target
我自己写的
-
RE: 关于 Bot is closed manually
这个是bots目录下的logs
[0m2023-02-01 00:49:52 V/: Decoded: Heartbeat.Alive[0m [96m2023-02-01 00:49:52 D/: Packet Handling Processor: receive packet Heartbeat.Alive[0m [0m2023-02-01 00:50:52 V/: Decoding packet: Value(ByteReadPacket(80 bytes remaining))[0m [0m2023-02-01 00:50:52 V/: Decoding: len=80, value=00 00 00 0A 00 00 00 00 00 0D 37 34 32 34 33 31 39 34 35 00 00 00 39 00 01 7D 82 00 00 00 00 00 00 00 04 00 00 00 13 48 65 61 72 74 62 65 61 74 2E 41 6C 69 76 65 00 00 00 08 57 85 B5 78 00 00 00 00 00 00 00 0A A8 01 00 C8 01 02 00 00 00 04[0m [0m2023-02-01 00:50:52 V/: Decoded: Heartbeat.Alive[0m [96m2023-02-01 00:50:52 D/: Packet Handling Processor: receive packet Heartbeat.Alive[0m [0m2023-02-01 00:51:52 V/: Decoding packet: Value(ByteReadPacket(80 bytes remaining))[0m [0m2023-02-01 00:51:52 V/: Decoding: len=80, value=00 00 00 0A 00 00 00 00 00 0D 37 34 32 34 33 31 39 34 35 00 00 00 39 00 01 7D 84 00 00 00 00 00 00 00 04 00 00 00 13 48 65 61 72 74 62 65 61 74 2E 41 6C 69 76 65 00 00 00 08 57 85 B5 78 00 00 00 00 00 00 00 0A A8 01 00 C8 01 02 00 00 00 04[0m [0m2023-02-01 00:51:52 V/: Decoded: Heartbeat.Alive[0m [96m2023-02-01 00:51:52 D/: Packet Handling Processor: receive packet Heartbeat.Alive[0m [0m2023-02-01 00:52:42 V/: Send: StatSvc.register(offline)[0m
-
RE: 关于 Bot is closed manually
同样的,挂了一天,问题再次出现
mcl文件的代码#!/usr/bin/env sh export JAVA_BINARY="/root/MCL/java/bin/java" nohup $JAVA_BINARY \ -Dmirai.network.handle.selector.logging=true \ -Dmirai.network.state.observer.logging=full \ -Dmirai.network.packet.logger=true \ -jar mcl.jar $* > /root/MCL/logs.txt &
logs2023-02-01.log
2023-02-01 00:52:42 V/Bot.742431945: Event: BotOfflineEvent.Active(bot=Bot(742431945), cause=null, reconnect=false)
重定向的logs.txt出问题的那几行
[0m2023-01-31 07:06:59 V/Bot.742431945: [骰子群(572938055)] 无名小花.(2543358175) -> [mirai:image:{91B099AF-DAB9-8AB8-7C21-A38A45B960AB}.gif, width=240, height=240, size=179816, type=GIF, isEmoji=true][0m[m [0m2023-01-31 10:58:14 V/Bot.742431945: [骰子群(572938055)] greenhandzdl(2029252158) -> 麻了,终于给他整上去了[0m[m [0m2023-01-31 10:58:59 V/Bot.742431945: [骰子群(572938055)] greenhandzdl(2029252158) -> 刚刚看到个好消息,腾讯终于杀完了\n[mirai:image:{29CB4E99-ACEC-8965-E889-93EE89E1A76E}.png, width=886, height=547, size=121408, type=PNG, isEmoji=false]\n坏消息是都是我的样本[0m[m [0m2023-01-31 22:14:03 V/Bot.742431945: [骰子群(572938055)] 緒山真尋(213552886) -> r[0m[m [0m2023-01-31 22:14:04 V/Bot.742431945: Group(572938055) <- [mirai:at:213552886] 幸运大转盘出来了哦~ \n获得了本轮豁免权[0m[m [0m2023-02-01 00:52:42 V/Bot.742431945: Event: BotOfflineEvent.Active(bot=Bot(742431945), cause=null, reconnect=false)[0m[m [92m2023-02-01 00:52:42 I/Bot.742431945: Bot is closed manually[0m[m [92m2023-02-01 00:52:42 I/Bot.742431945: Bot cancelled: Job was cancelled[0m[m [92m2023-02-01 00:52:42 I/randomSurprise: randomSurprise Disabled[0m[m [92m2023-02-01 00:52:42 I/dice: Dice disabled[0m[m