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) 253 B
const CQTag = require('../CQTag'); module.exports = class CQDice extends CQTag { constructor() { super('dice'); } get type() { return this.data.type; } coerce() { this.data.type = Number(this.data.type); return this; } };