github.com/Nambers/MiraiCP ↗
c++ SDK of Mirai
Open this visualization on its own page →
Contributors
9
Lines of Code
5,551
From
2020-08-18
To
2022-04-26
About Nambers/MiraiCP
MiraiCP is a C++ SDK for the Mirai QQ bot framework, enabling developers to write bot plugins in C++ rather than Kotlin. It functions as a community-maintained wrapper around Mirai's console and core, using JNI to bridge between C++ and Kotlin to interact with the underlying Mirai bot system.
The SDK supports a comprehensive range of QQ messaging and event scenarios including group messages, private messages, friend requests, group invitations, member join/leave events, message recalls, temporary group chats, scheduled events, and poke notifications. It uses modern C++ standards (C++17), CMake for building, and handles UTF-8 encoding natively. The project supports multiple deployment methods through MCL plugin loaders and can run on Termux, with releases synchronized to Mirai-core versions.
Notable aspects of the project include its consolidated codebase where updates primarily involve replacing a single header file and supporting files, its exposure of underlying implementation details rather than hiding them behind abstractions, and its active community channels including forum discussions, GitHub issues, and a dedicated QQ group. The project is strictly educational and non-commercial, licensed under AGPLv3 in accordance with Mirai's own licensing.