UNPKG

@tsuk1ko/cq-websocket

Version:

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

21 lines (16 loc) 314 B
const CQTag = require('../CQTag'); module.exports = class CQText extends CQTag { constructor(text) { super('text', { text }); } get text() { return this.data.text; } coerce() { this.data.text = String(this.data.text); return this; } toString() { return this.data.text; } };