Nambers/MiraiCP

Created Apr 28, 2022 · View the Nambers/MiraiCP repository page

c++ SDK of Mirai

Want this for your repo?

Render a free sample of any GitHub repo in seconds.

Visualize your own →

Contributors

9

Lines of Code

5,551

From

Aug 18, 2020

To

Apr 26, 2022

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.

Share this video