Giter VIP home page Giter VIP logo

another-mirai-native2's Introduction

Another-Mirai-Native2

协议实现进度

以下仅代表本框架实现程度,具体能否发送或调用还需要看协议实现方是否实现了此功能

协议API可用情况

撤回消息 Cookie CsrfToken 好友列表 群组信息 群组列表 群成员信息 群成员列表 账号昵称 账号 ID 获取陌生人信息 发送群组信息 发送名片赞 发送单聊信息 发送讨论组信息 主动离开讨论组 处理好友添加请求 处理群组添加请求 设置群管理 设置群组匿名 禁言群匿名成员 禁言群成员 设置群组成员名片 移除群组成员 主动离开群组 设置群组成员头衔 设置群组全员禁言
MiraiApiHttp
OneBot v11
Satori v1

协议CQ码可发送情况

MiraiAPIHttp OneBot v11 Satori v1
face
image
record
at
dice
music
rich
reply

协议CQ码可解析情况

MiraiAPIHttp OneBot v11 Satori v1
face
bigface
image
flashimage
record
at
atall
dice
music
xml
json
app
rich
reply
poke

another-mirai-native2's People

Contributors

hellobaka avatar

Stargazers

 avatar  avatar

another-mirai-native2's Issues

核心与插件缺失心跳机制

由于在多插件情况下,原始的心跳逻辑会导致连接时间过长,现已注释此部分逻辑。需要考虑重新实现此部分

MAH协议半夜存在连接断开的问题

image
不知名原因,半夜此时协议断连,第二天手动无法断开连接,使用调试器后发现是连接早已断开,但是IsConnected属性依旧为true导致无法主动断开连接

OneBot v11 处理私聊消息的时候出错

报错信息:

Error reading string. Unexpected token: StartArray. Path 'message', line 1, position 273.
   在 Newtonsoft.Json.JsonReader.ReadAsString()
   在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
   在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   在 Newtonsoft.Json.Linq.JToken.ToObject(Type objectType, JsonSerializer jsonSerializer)
   在 Newtonsoft.Json.Linq.JToken.ToObject(Type objectType)
   在 Newtonsoft.Json.Linq.JToken.ToObject[T]()
   在 Another_Mirai_Native.Protocol.OneBot.OneBotAPI.DispatchPrivateMessage(JObject message)
   在 Another_Mirai_Native.Protocol.OneBot.OneBotAPI.DispatchMessage(JObject message)
   在 Another_Mirai_Native.Protocol.OneBot.OneBotAPI.HandleEvent(String data)

OneBot 实现发送的 JSON 数据:

{
	"self_id": 1123456,
	"user_id": 2234567,
	"time": 1234567890,
	"message_id": 1234567890,
	"real_id": "1234567890987654321",
	"message_type": "private",
	"sender": {
		"user_id": 2234567,
		"nickname": "HIMlaoS_Misa",
		"card": ""
	},
	"raw_message": "hello world",
	"font": 14,
	"sub_type": "friend",
	"message": [{
		"data": {
			"text": "hello world"
		},
		"type": "text"
	}],
	"message_format": "array",
	"post_type": "message"
}

托盘菜单插件排序

现插件菜单仍是随机顺序,与UI显示的插件顺序不符,需按照AppID升序排序

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.