UNPKG

@tsuk1ko/cq-websocket

Version:

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

17 lines (13 loc) 251 B
const CQTag = require('../CQTag'); module.exports = class CQAt extends CQTag { constructor(qq) { super('at', { qq }); } get qq() { return this.data.qq; } coerce() { this.data.qq = String(this.data.qq); return this; } };