编译了mirai
群员属性添加了活跃等级
群信息添加了 群最大人数
功能:群批量踢人 刷新群员信息
D
dqfe123 发布的帖子
-
mirai 无法打包
idea: 2022.3.1
jdk: OpenJdk17
gradle: 8.0
kotlin-plugin: 223-1.8.0-release-345-AS8836.35.2231.10406996
branch:dev./gradlew publishMiraiArtifactsToMavenLocal "-Dmirai.build.project.version=2.99.0-local" "-Porg.gradle.parallel=false"
FAILURE: Build failed with an exception. * What went wrong: Task 'publishMiraiArtifactsToMavenLocal' not found in root project 'mirai' and its subprojects. * Try: > Run gradlew tasks to get a list of available tasks. > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/8.0/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 2s 10 actionable tasks: 10 up-to-date
./gradlew --warning-mode all
> Configure project :mirai-console-compiler-annotations The TestReport.destinationDir property has been deprecated. This is scheduled to be removed in Gradle 9.0. Please use the destinationDirectory property instead. See https://docs.gradle.org/8.0/dsl/org.gradle.api.tasks.testing.TestReport.html#org.gradle.api.tasks.testing.TestReport:destinationDir for more details. at Build_gradle$1.execute(build.gradle.kts:24) (Run with --stacktrace to get the full stack trace of this deprecation warning.) The TestReport.reportOn(Object...) method has been deprecated. This is scheduled to be removed in Gradle 9.0. Please use the testResults method instead. See https://docs.gradle.org/8.0/dsl/org.gradle.api.tasks.testing.TestReport.html#org.gradle.api.tasks.testing.TestReport:testResults for more details. at Build_gradle$1.execute(build.gradle.kts:24) (Run with --stacktrace to get the full stack trace of this deprecation warning.) The Report.destination property has been deprecated. This is scheduled to be removed in Gradle 9.0. Please use the outputLocation property instead. See https://docs.gradle.org/8.0/dsl/org.gradle.api.reporting.Report.html#org.gradle.api.reporting.Report:destination for more details. at Build_gradle.<init>(build.gradle.kts:19) (Run with --stacktrace to get the full stack trace of this deprecation warning.) > Task :help Welcome to Gradle 8.0. To run a build, run gradlew <task> ... To see a list of available tasks, run gradlew tasks To see more detail about a task, run gradlew help --task <task> To see a list of command-line options, run gradlew --help For more detail on using Gradle, see https://docs.gradle.org/8.0/userguide/command_line_interface.html For troubleshooting, visit https://help.gradle.org BUILD SUCCESSFUL in 10s 11 actionable tasks: 1 executed, 10 up-to-date
-
RE: spring boot+mirai-core快速开发机器人
已集成fix-protocol-version 1.9.3,配合unidbg-fetch-qsign 1.1.3
45的号,可以通过账号密码登录
不过有风险,可能会冻结账号,需要实名认知
Q群: 786310882
群文件有完整的 启动包 -
RE: spring boot+mirai-core快速开发机器人
已升级框架版本为2.0.1,可以扫码登录
完善了指令和权限编写方式,更直观的编写插件//指令回复 “#测试” 默认群管理员以上权限可以使用 默认好友消息,群消息, 群At机器人消息回复 addCommand("测试指令", "测试指令", qqMessage -> { qqMessage.putReplyMessage("测试指令已收到"); return true; }, true);
-
RE: spring boot+mirai-core快速开发机器人
优化定时早安消息发布,解决消息不足3次,停止定时器问题
<dependency> <groupId>com.shr25.robot.plugin</groupId> <artifactId>group-morning-plugin</artifactId> <version>1.0.4</version> <scope>provided</scope> </dependency>
-
RE: spring boot+mirai-core快速开发机器人
定时早安插件:https://gitee.com/shr25/group-morning-plugin
<dependency> <groupId>com.shr25.robot.plugin</groupId> <artifactId>group-morning-plugin</artifactId> <version>1.0.2</version> <scope>provided</scope> </dependency>
调整了随机图片、早安语的逻辑。
增加了群消息数记录,当积累的消息数大于等于3时,才重复发送早安消息,防止连续发送 -
RE: spring boot+mirai-core快速开发机器人
添加摸鱼日历插件 :https://gitee.com/shr25/loafers-calendar-plugin.git
<dependency> <groupId>com.shr25.robot.plugin</groupId> <artifactId>loafers-calendar-plugin</artifactId> <version>1.0.0</version> <scope>provided</scope> </dependency>
-
RE: spring boot+mirai-core快速开发机器人
@Creeper_awa 这个不是mirai-console的插件 mirai-console要看:https://mirai.mamoe.net/topic/223
-
RE: spring boot+mirai-core快速开发机器人
方法一:直接下载
maven中央仓库地址:https://repo1.maven.org/maven2/com/shr25/robot/plugin/protocol-version-plugin/1.0.3/方法二:
<dependency> <groupId>com.shr25.robot.plugin</groupId> <artifactId>protocol-version-plugin</artifactId> <version>1.0.3</version> <scope>provided</scope> </dependency>
不过这个是shr25-qq-robot的 插件
源码:https://gitee.com/shr25/protocol-version-plugin