MyGit
🚩收到GitHub仓库的更新通知

Nambers/MiraiCP

Fork: 31 Star: 179 (更新于 2024-05-10 11:56:24)

license: AGPL-3.0

Language: C++ .

c++ SDK of Mirai

最后发布版本: v2.16.0 ( 2023-11-02 10:44:18)

官方网址 GitHub网址

✨免费申请网站SSL证书,支持多域名和泛域名,点击查看

MiraiCP

API文档 · 下载 · demo

License GitHub release (latest SemVer) GitHub last commit image

中文

English

Tips~ 如有意向一起开发本项目,请联系我邮箱 ( ̄▽ ̄)"

关于MiraiCP

API文档(包含示例) · 文档库 · demo

支持的事件

这些内容可以在Config.kt看到

事件名称 函数名称
机器人上线 BotOnlineEvent
群聊消息 GroupMessageEvent
私聊消息 PrivateMessageEvent
好友申请 NewFriendRequestEvent
群聊邀请 GroupInviteEvent
新群成员申请 MemberJoinRequestEvent
新群成员加入 MemberJoinEvent
群成员离开 MemberLeaveEvent
机器人加入 BotJoinEvent
机器人离开 BotLeaveEvent
消息撤回 RecallEvent
群临时会话 GroupTempMessageEvent
定时事件执行 SchedulingEvent
戳一戳 NugdeEvent

特性

  • C++ 17
  • 使用cmake
  • 使用jni与kt交互
  • c++ utf8编码
  • 支持termux
  • 与mirai-core同步发布(无需mah)
  • 支持3种使用方法(mcl, MiraiCP-loader 以及 MiraiCP-core)
  • [从2.7.0开始]代码集中到一个hpp文件和其他固定依赖文件,每次更新只需要更新那个文件
  • 不封装和隐藏底层实现代码,您可以自定义实现代码或通过实现代码提issue/pr

CI Test status

CI Name status
C++ in windows(mingw&msvc) & linux(g++) C++ Test
kotlin kotlin Test

使用声明

  1. MiraiCP是一个Mirai 的C++语言的社区SDK,基于Mirai-console和Mirai-core插件模板开发

  2. 本项目仅供学习参考,禁止用于任何商业用途(根据Mirai的AGPLv3许可协议开源)。

  3. 本项目不含有任何旨在破坏用户计算机数据和获取用户隐私的恶意代码,不含有任何跟踪、监视用户计算机功能代码,不会收集任何用户个人信息,不会泄露用户隐私。

  4. 本项目不提供任何具体功能实现,仅仅只是对项目mirai-console和mirai-core(详见mirai仓库)的二次封装。

  5. 任何单位或个人认为本项目可能涉嫌侵权,应及时提出反馈,本项目将会第一时间对违规内容给予删除等相关处理。

使用流程

startup.md

如果有其他问题,欢迎提交 issue 询问和提交 pull request 贡献

更新方式

直接拉取

可直接在模板clone下来的文件夹中git stash, git fetch, git pull, git stash pop 直接从上游拉取代码, 然后再在本项目的release中下载最新对应的jar组件和中间件替换旧的

手动替换

  1. 最新release 中下载loader/plugin的jar文件和中间件并替换

  2. 从各自的模板项目中下载 MiraiCP.hpp, MiraiCP.cpp, 替换原本的文件

调试

请参考调试文档仓库

交流方式

论坛贴: miraicp

github issue: miraicp issue

qq群: 1044565129

TODO

查看本项目的milestones里程碑

查看 issues

许可

Copyright (C) 2020-2022 Eritque arcus 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 any later version(in your opinion).

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/>.

依赖

C++ dependencies
Dependence name Url Author License
JSON for modern C++ https://github.com/nlohmann/json Niels Lohmann MIT
UTF8-CPP: UTF-8 with C++ in a Portable Way https://github.com/nemtrif/utfcpp Nemanja Trifunovic BSL-1.0
JNI Headers Null Java GNU General Public License version 2
Amalgamate: C++ source file amalgamation https://github.com/0ph1uch1/amalgamate Antares0982 AGPL-3.0
PolyM is a very simple C++ message queue intended for inter-thread communication https://github.com/khuttun/PolyM khuttun MIT
Kotlin dependencies
Dependence name Url Author License
Jline 3 https://github.com/jline/jline3 Jline team BSD-3
Mirai https://github.com/mamoe/mirai Mamoe team AGPL-3.0
Jansi https://github.com/fusesource/jansi FuseSource team Apache License 2.0
Mordant: Colorful styling for command-line applications https://github.com/ajalt/mordant AJ Alt Apache License 2.0
Junit 5 https://github.com/junit-team/junit5 Junit team Eclipse Public License - v 2.0

Stargazers

Stargazers repo roster for @Nambers/MiraiCP

最近版本更新:(数据更新于 2024-05-11 15:16:33)

2023-11-02 10:44:18 v2.16.0

2023-09-06 03:34:27 v2.16.0-dev1

2023-08-06 00:03:36 v2.15.0

2023-04-10 12:48:45 v2.15.0-RC2

2023-04-10 12:15:58 v2.15.0-RC

2023-03-01 01:19:36 v2.14.0

2023-01-27 13:04:19 v2.13.2

2023-01-22 03:46:28 v2.13.1

2022-11-20 01:14:50 v2.13.0-alpha-3

2022-11-16 03:10:49 v2.13.0-alpha-2

主题(topics):

cpp, jni, kotlin, kotlin-native, mirai

Nambers/MiraiCP同语言 C++最近更新仓库

2024-05-14 14:26:30 PCSX2/pcsx2

2024-05-13 17:12:15 PabloMK7/citra

2024-05-13 08:38:23 notepad-plus-plus/notepad-plus-plus

2024-05-12 21:48:34 LeagueToolkit/cslol-manager

2024-05-11 19:53:51 MaaAssistantArknights/MaaAssistantArknights

2024-05-10 13:07:15 Mr-Wiseguy/Zelda64Recomp