UNPKG

@xud6/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) 248 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 = Number(this.data.qq) return this } }