MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接
    1. 主页
    2. StageGuard
    3. 帖子
    • 资料
    • 关注 2
    • 粉丝 5
    • 主题 5
    • 帖子 121
    • 最佳 14
    • 有争议的 0
    • 群组 2

    StageGuard 发布的帖子

    • RE: 今天你写代码了吗?

      @rainchan 快去写!

      发布在 摸鱼区
      StageGuard
      StageGuard
    • RE: 今天你写代码了吗?

      写代码小助手提醒你:今天还没写代码

      发布在 摸鱼区
      StageGuard
      StageGuard
    • RE: 今天你写代码了吗?

      今天写了吗今天写了吗

      发布在 摸鱼区
      StageGuard
      StageGuard
    • 今天你写代码了吗?

      再不努力就要被卷死了。

      发布在 摸鱼区
      StageGuard
      StageGuard
    • RE: LoliconMirai 能在MiraiConsole使用LoliconApi的群小插件

      第一个插件就是色图插件,以后敢做什么我想都不敢想

      发布在 插件发布
      StageGuard
      StageGuard
    • RE: B站动态/直播检测插件 v3船新版本 低延迟 美观 可配置性高

      好像不错,试试

      发布在 插件发布
      StageGuard
      StageGuard
    • RE: Windows系统UTF8编码乱码

      java -D"file.encoding=utf-8" mcl.jar

      发布在 BUG反馈
      StageGuard
      StageGuard
    • RE: 如何获取退群玩家的群名片

      Member.nameCardOrNick

      发布在 开发交流
      StageGuard
      StageGuard
    • RE: log4j2报错

      这个错误不影响使用,如果忍不了就添加 mirai-bridge-slf4j 依赖

      发布在 BUG反馈
      StageGuard
      StageGuard
    • RE: kotlin如何运行js代码

      使用 Mozilla Rhino,参考:https://github.com/StageGuard/OsuMapSuggester/blob/main/src/main/kotlin/me/stageguard/obms/script/ScriptContext.kt

      发布在 开发交流
      StageGuard
      StageGuard
    • RE: SuperCourseTimetableBot - 基于 mirai-console 的 超级课表上课提醒QQ机器人插件

      @wssy001 exposed很方便适配

      发布在 插件发布
      StageGuard
      StageGuard
    • RE: AutoGroup 折磨群友插件

      好像很好玩的样子

      发布在 插件发布
      StageGuard
      StageGuard
    • OsuMapSuggester - 一个可以为 osu!standard 玩家推图的 mirai-console 插件

      OsuMapSuggester

      一个可以为 osu!standard 玩家推图的 mirai-console 插件。

      CI CodeFactor

      查看开发进度:#1

      特性

      插件可以从 osu!standard 玩家的 Best Performance 分析 aim, speed and accuracy 能力和 PerformancePlus 以及其他因素来推断玩家的类型(跳跳人或串串人之类的)。

      然后插件可以针对这个玩家的弱点或强项给这个玩家推荐特定类型的谱面。(未实现)

      用户也可以通过以下方式来自定义谱面类型规则。

      除此之外,还有其他以下特性:

      • 查询玩家的
        Best Performance 并以图片显示。
      • 和其他玩家对比
        Best Performance。
      • 以 Full Combo 重新计算
        Best Performance 和排名。
      • 显示玩家技能雷达图。
      • 查询玩家最近一次成绩,包括类似 osu!lazer 的 Accuracy Heatmap 和 PP 曲线图等属性,并以图片显示。
      • ...

      开始

      使用

      如果你已经加了拥有此功能的 BOT 所在的群,想查看使用方法,请前往 Wiki 界面。

      部署

      准备工作

      • MySQL 或 MariaDB 数据库, 并需要为插件创建一个数据库。

      • 有公网 IP 的服务器。

      • mirai-console 运行环境

      • osu! OAuth 应用

      • osu! v1 api 密钥

      运行

      1. 克隆并用 IntelliJ IDEA 打开工程. 同步 gradle 项目后运行 mirai/buildPlugin gradle 任务来构建项目。

      如果你不想用 IntelliJ IDEA,也可以克隆后在命令行运行 chmod +x gradlew && ./gradlew buildPlugin 指令来构建. 构建完成后的 jar 输出在 build/mirai.

      1. 把构建好的 jar 包放入 <mirai-console目录>/plugins/ 中,启动 mirai console,不出意外的话你会看到以下输出:
      2021-07-26 20:22:37 E/OsuMapSuggester: Failed to connect database: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Access denied for user 'user'@'host' (using password: YES/NO).
      2021-07-26 20:22:37 E/OsuMapSuggester: Retry to connect database in 10 seconds.
      
      1. 停止 mirai console, 编辑配置文件 config/OsuMapSuggester/OsuMapSuggester.Config.yml
      qq: 1234567890 # 为这个 BOT 启用插件
      database: 
        address: localhost # 数据库地址
        port: 3306 # 端口
        user: root # 账号
        password: testpwd # 密码
        table: osu!beatmap suggester # 数据库名称(在准备工作第一步创建的数据库)
        maximumPoolSize: 10
      osuAuth: 
        clientId: 0 # OAuth clientId
        secret: '' # OAuth client secret
        # 回调地址,必须和 OAuth 设置的相同(不包含 /authCallback)
        # 注意这个地址是为了生成绑定账号的 OAuth 链接。
        authCallbackBaseUrl: 'http://localhost:8081' 
        v1ApiKey: '' # vi api 密钥
      frontend:
        host: localhost # 前端主机地址,注意这个地址是实际主机地址
        port: 8081 # 前端端口
      
      1. 保存,重新运行 mirai console,登录设定的账号后,看到以下输出则意味着工作正常:
      2021-07-26 20:34:27 I/OsuMapSuggester: Subscribed group and friend messages.
      

      问题反馈

      这个项目仍在活跃开发中,并不稳定并且有许多 BUG。

      如果你在使用过程中遇到了致命 BUG,请新建一个 Issue 并加上 bug 标签。

      同时欢迎 pr;或者如果有好的想法,也可以新建一个 Issue 加上feature 标签。

      效果

      • 最近成绩
        Recent Play

      • 与其他玩家最好成绩对比
        Best Performance VS

      • 自定义谱面规则
        Ruleset List

      • 触发推图
        Suggest

      • 在插件开启的前端创建 / 编辑自己的谱面集规则
        Edit Ruleset

      许可证

      OsuMapSuggester
      Copyright (C) 2021 StageGuard
      
      This program is free software: you can redistribute it and/or modify
      it under the terms of the GNU Affero General Public License as published
      by the Free Software Foundation, either version 3 of the License, or
      (at your option) any later version.
      
      This program is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU Affero General Public License for more details.
      
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <https://www.gnu.org/licenses/>.
      
      mirai
      Copyright (C) 2019-2021 Mamoe Technologies and contributors.
      
      This program is free software: you can redistribute it and/or modify
      it under the terms of the GNU Affero General Public License as
      published by the Free Software Foundation, either version 3 of the
      License, or (at your option) any later version.
      
      This program is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU Affero General Public License for more details.
      
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
      
      发布在 插件发布
      StageGuard
      StageGuard
    • RE: 应该从哪里着手Android开发

      直接在android项目导入mirai-core依赖即可; 或者开发console插件,使用MiraiAndroid加载

      发布在 开发交流
      StageGuard
      StageGuard
    • RE: 社畜人,社畜魂

      呜呜呜呜呜呜呜呜

      发布在 摸鱼区
      StageGuard
      StageGuard
    • RE: Mirai现在有保存聊天记录的插件吗

      你可以尝试自己写一个:

      bot.subscribeAlways {
          val imageLink: MutableMap<String> = mutableMapOf() //图片ID和链接
          message.filterIsInstance<Image>().forEach { i -> imageLink.add(i.imageId to i.queryUrl()) }
          val serializedMessage = message.serializeToMiraiCode() // 序列化后的消息
      }
      
      发布在 使用交流
      StageGuard
      StageGuard
    • RE: 这个报错应该如何解决?

      mirai-slf4j-bridge

      发布在 BUG反馈
      StageGuard
      StageGuard
    • RE: MCL

      提供一下错误截图,

      发布在 使用交流
      StageGuard
      StageGuard
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 4 / 7