momocow / node-cq-websocket

A Node SDK for developing QQ chatbots based on WebSocket, which is depending on CoolQ and CQHTTP API plugin.

Home Page:https://cq-websocket.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistent parameters among message events

momocow opened this issue · comments

For example,

Events emitted in series when the bot is @-ed.
message.group.@.me (event, context)
message.group.@ (event, context)
message.group (event, context)
message (event, context)

In another hand, if a group message is received without any @ tags including the bot.
message.group.@ (event, context, atTags)
message.group (event, context, atTags)
message (event, context, atTags)

And normal messages without any @ tag.
message.group (event, context)
message (event, context)

The solution will be to make the third parameter of all message events a list of all CoolQ tags, to maintain the consistency among message events.

#17 is already in plan to provide those CoolQ tags.