MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接
    1. Home
    2. StageGuard
    • Profile
    • Following 2
    • Followers 5
    • Topics 4
    • Posts 106
    • Best 10
    • Controversial 0
    • Groups 2

    StageGuard

    @StageGuard

    14
    Reputation
    255
    Profile views
    106
    Posts
    5
    Followers
    2
    Following
    Joined Last Online

    StageGuard Unfollow Follow
    CaptchaFree 摸鱼

    Best posts made by StageGuard

    • RE: 发帖·互赞·刷声望

      @eric归梦 Global Moderator 表示那是什么(滑稽

      posted in 摸鱼区
      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() // 序列化后的消息
      }
      
      posted in 使用交流
      StageGuard
      StageGuard
    • SuperCourseTimetableBot - 基于 mirai-console 的 超级课表上课提醒QQ机器人插件

      SuperCourseTimetableBot

      一个基于 mirai 和 mirai-console 的 超级课程表 提醒 mirai-console 插件。

      开源地址:https://github.com/KonnyakuCamp/SuperCourseTimetableBot

      Gradle CI Status CodeFactor

      特性

      • Interactive Conversation Mode - 交互式聊天模式的用户接口

      抛弃了传统的命令式交互,采用了更友好的交互式聊天模式。

      • 允许用户更方便地修改时间表信息

      可能超级课表上的作息时间表与学校不吻合,用户可以发送 修改时间表 来修改。

      在 交互式聊天模式 的优势下,修改时间表的步骤变得非常容易。

      • 允许用户自定义提醒时间

      用户发送 修改提前提醒时间 即可通过步骤引导修改。

      • 适配几乎所有使用超级课程表的高校

      插件工作时,为每个正在使用的用户的高校分别计算当前周数和时间表,互不冲突。

      • 数据库存储数据

      使用 MySQL 或 MariaDB 存储用户的数据,当用户数量较多时依然保持良好的数据读取性能。

      使用

      部署

      请前往 Github 主页查看详情。

      贡献

      欢迎任何使用者大佬们贡献这个项目,你可以通过反馈 BUG,提出 Pull Request 申请,在这个主题下回复,或修改文档错别字来贡献这个项目。

      posted in 插件发布
      StageGuard
      StageGuard
    • RE: 今天你写代码了吗?

      今天写了吗今天写了吗

      posted in 摸鱼区
      StageGuard
      StageGuard
    • RE: 求助大神,mirai console不能用了,怎么运行mirai插件,下载了mirai 仓库的v2.11.0-RC2,麻烦详细点

      https://github.com/mamoe/mirai/blob/dev/docs/UserManual.md

      posted in 开发交流
      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/>.
      
      posted in 插件发布
      StageGuard
      StageGuard
    • RE: 今天你写代码了吗?

      @samarium150 今天一定

      posted in 摸鱼区
      StageGuard
      StageGuard
    • RE: Mirai Plugin for Parabox --- 为Parabox接入mirai消息源

      这个ui看起来太棒了,膜拜大佬顺便学习一下 jetpack compose

      posted in 其他项目发布
      StageGuard
      StageGuard
    • RE: 关于基于 Mirai Console 的【经济管理】前置插件的构思

      可以作为前置插件,插件内部维护一个单例

      posted in 开发交流
      StageGuard
      StageGuard
    • RE: 今天你写代码了吗?

      写代码小助手提醒你:今天也要写代码哦

      posted in 摸鱼区
      StageGuard
      StageGuard

    Latest posts made by StageGuard

    • RE: 无法连接到 mirai。请检查 mirai-api-http 是否启动,地址与端口是否正确。

      你没有看到 mirai console 的 1 plugins enabled 吗,你根本没有安装 mirai-api-http 插件

      posted in HTTP API和第三方SDK
      StageGuard
      StageGuard
    • RE: 查询 谁@我

      @202543782 https://github.com/mamoe/mirai/blob/dev/mirai-console/docs/BuiltInCommands.md#permissioncommand
      在问任何问题之前最好完整阅读用户手册,以免引起不必要的麻烦

      posted in 插件发布
      StageGuard
      StageGuard
    • RE: console 插件接单

      顶顶,已接一单

      posted in 摸鱼区
      StageGuard
      StageGuard
    • RE: console 插件接单

      顶顶

      posted in 摸鱼区
      StageGuard
      StageGuard
    • RE: 该如何理解PremiteeID里的群权限

      表示被授予权限的某个或者某类对象
      https://github.com/mamoe/mirai/blob/dev/mirai-console/docs/Permissions.md#字符串表示

      posted in 使用交流
      StageGuard
      StageGuard
    • console 插件接单

      如题,接收小型中型插件定制需求,大型项目需要经本人评估后决定是否接单。
      我写过的插件有 SuperCourseTimetableBot 和 OsuMapSuggester,都是长期维护的大型插件项目。
      你可以自己决定完成后是否提供长期技术支持,需要额外支付长期维护费用。
      如果有需求可以在论坛中私聊我或者发邮箱 beamiscool@qq.com。

      posted in 摸鱼区
      StageGuard
      StageGuard
    • RE: 【每日沙雕图】沙雕小别墅

      QQ_Image_1671508083193.gif

      posted in 摸鱼区
      StageGuard
      StageGuard
    • RE: OsuMapSuggester - 一个可以为 osu!standard 玩家推图的 mirai-console 插件

      @子君9297 @TNTobsidian 抱歉很长时间没登录论坛,8月某次更新更改了 pp 算法实现,需要预先安装 rust 工具链构建 pp 算法库

      posted in 插件发布
      StageGuard
      StageGuard
    • RE: 给Mirai娘的新衣服!

      已冲

      posted in 摸鱼区
      StageGuard
      StageGuard
    • RE: Mirai Plugin for Parabox --- 为Parabox接入mirai消息源

      这个ui看起来太棒了,膜拜大佬顺便学习一下 jetpack compose

      posted in 其他项目发布
      StageGuard
      StageGuard