全开源 TIM QQ机器人/QQ协议支持库

Him188moe fa6a9b66b2 Updated message&contact adding 6 vuotta sitten
document 74fff88a0c Captcha finished 6 vuotta sitten
mirai-api b33e8757e5 Moduled project 6 vuotta sitten
mirai-console b33e8757e5 Moduled project 6 vuotta sitten
mirai-core fa6a9b66b2 Updated message&contact adding 6 vuotta sitten
mirai-native cf4eed6d28 Updated verification code 6 vuotta sitten
mirai-ui 6da2bd2f31 Enhanced Message 6 vuotta sitten
.gitignore d3ba95c5b0 update 6 vuotta sitten
LICENSE 3c0c8f18cf update 6 vuotta sitten
README.md 0753e54b4f Update README.md 6 vuotta sitten
pom.xml b33e8757e5 Moduled project 6 vuotta sitten

README.md

Mirai

一个以TIM QQ协议驱动的JAVA(+Kotlin) QQ机器人服务端核心
我们坚持免费与开源

项目处于快速开发阶段
协议来自网络上开源项目
一切开发旨在学习, 请勿用于非法用途


A JAVA(+Kotlin) powered open-source project under GPL license
It use protocols from TIM QQ, that is, it won't be affected by the close of Smart QQ
The project is all for learning proposes and still in developing stage

代码结构

Network部分使用 Kotlin 完成(因为kt有对 unsigned byte 的支持).
与插件相关性强(或其他在二次开发中容易接触)的部分尽量使用 Java 完成, 若使用 Kotlin, 我们会通过 Java interface 实现或 javadoc 帮助未接触过 Kotlin 的开发者. 即使你完全不了解 Kotlin, 你也可以正常开发.

抢先体验

现在你可以使用 Mirai 内置的一些测试qq号体验 Mirai.

  1. Clone
  2. Import as Maven project
  3. Run MiraiMain 简略阅读源码便可测试接收和发送消息

TODO

  • 事件(Event)模块
  • 插件(Plugin)模块 (Working on)
  • Network - Touch
  • [X] Network - Login
  • [X] Network - Session
  • [X] Network - Verification Code
  • [X] Network - Message Receiving
  • [X] Network - Message Sending
  • Network - Events (Working on)
  • Robot - Friend/group list
  • Robot - Actions(joining group, adding friend, etc.)
  • Message Section (Working on)
  • Contact
  • UI


使用方法

要求

  • Java 11 或更高
  • Kotlin 1.3 或更高

    插件开发

    to be continued
    ...
    

Usage

Requirements

  • Java 11 or higher
  • Kotlin 1.3 or higher

    Plugin Development

    to be continued
    ...